home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CU Amiga Super CD-ROM 6
/
CU Amiga Magazine's Super CD-ROM 06 (1996)(EMAP Images)(GB)(Track 1 of 4)[!][issue 1997-01].iso
/
cucd
/
prog
/
gnu-c
/
src
/
gcc-2.7.0-amiga
/
changelog
< prev
next >
Wrap
Text File
|
1995-06-16
|
141KB
|
3,638 lines
Fri Jun 16 06:54:03 1995 Richard Kenner (kenner@vlsi1.ultra.nyu.edu)
* alpha.c (alpha_builtin_saveregs): Use ptr_mode and conversions
when need so works for both OSF and NT.
* va-alpha.h (__va_tsize): Round to long long not long.
Thu Jun 15 17:54:52 1995 Bdale Garbee <bdale@gag.com>
* configure (a29k-*-coff): Synonym for a29k-*-udi.
Thu Jun 15 17:51:21 1995 Richard Kenner (kenner@vlsi1.ultra.nyu.edu)
* function.c (assign_parms): Do all conversions in CONVERSION_INSNS.
Thu Jun 15 17:36:49 1995 Michael Meissner <meissner@cygnus.com>
* reg-stack.c (record_reg_life): Call record_reg_life_pat with 0
for douse argument so that USE's created to mark variables within
blocks don't get marked as set.
Thu Jun 15 06:28:15 1995 Dennis Glatting (dennisg@CyberSAFE.COM)
* configure: Change one sed command to work around m68k-next bug.
Wed Jun 14 22:14:39 1995 Jason Merrill <jason@deneb.cygnus.com>
* collect2.c (main): Don't turn off auto_export because of -g.
(main): Ignore the argument to -o.
* alpha.h (LINK_SPEC): Don't pass -init __main anymore.
* alpha/osf12.h (LINK_SPEC): Ditto.
* mips/iris5.h (LINK_SPEC): Ditto.
* collect2.c (main): Place o_file after an initial .o (like crt0.o).
If we have LD_INIT_SWITCH, use init and fini functions for
executables, too. Specify the unique function names.
(write_c_file_stat): Fix the case of destructors but no constructors.
Don't include the generic-named functions for executables.
(write_c_file): If we have LD_INIT_SWITCH, always use
write_c_file_stat.
* collect2.c (main): Also add _GLOBAL__D? to export list.
* ginclude/iso646.h: Do nothing if compiled as C++.
Wed Jun 14 17:39:10 1995 Roland McGrath (roland@gnu.ai.mit.edu)
* c-common.c (format_char_info, case 'm'): Set type to void.
(check_format_info): If type is void, ignore operand.
Wed Jun 14 17:04:10 1995 Paul F. Kunz (Paul_Kunz@SLAC.Stanford.EDU)
* expr.c (expand_builtin_apply_args): Put back original
register save and restore order.
Wed Jun 14 16:56:22 1995 Michael Meissner <meissner@cygnus.com>
* rs6000/eabi.h (INVOKE__main): Define, so __eabi is called after
main's arguments are saved.
* rs6000.c (output_prolog): Don't call __eabi here, let
compiler call it after the arguments to main are saved.
(output_{prolog,epilog}): Don't use functions under V.4 to save
and restore floating point registers.
Wed Jun 14 16:52:12 1995 Philippe De Muyter (phdm@info.ucl.ac.be)
* m68k/mot3300.h (PCC_BITFIELD_TYPE_MATTERS): Defined.
Wed Jun 14 16:48:53 1995 Jerry Frain (jerry@tivoli.com)
* Makefile.in (stage[1-4]): Correctly link `as', `ld', and `collect2'.
Wed Jun 14 05:52:04 1995 Richard Kenner (kenner@vlsi1.ultra.nyu.edu)
* objc-act.c (hack_method_prototype): Set DECL_CONTEXT of parms.
* expmed.c (emit_store_flag): Always set LAST.
* c-decl.c (start_function): New parameter for attributes.
* c-tree.h (start_function): Likewise.
* c-lang.c (finish_file): Pass extra parm to start_function.
* objc-act.c (build_module_descriptor, really_start_method): Likewise.
* c-parse.in (fndef, nested_function, notype_nested_function):
Likewise.
* function.c (assign_parms): Use convert_to_mode instead of
gen_lowpart when converting incoming parm.
Tue Jun 13 19:10:32 1995 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
* rs6000.md (decrement_and_branch): Finish last fix; update matching
constraint.
Tue Jun 13 18:32:51 1995 Torbjorn Granlund <tege@bozo.matematik.su.se>
* fold-const.c (fold): When converting a COND_EXPR to an ABS_EXPR,
get the types right for ABS_EXPR to work.
Mon Jun 12 17:09:55 1995 Michael Tiemann (tiemann@axon.cygnus.com)
* reorg.c (fill_simple_delay_slots): Set MAYBE_NEVER according to
code of TRIAL_DELAY, not TRIAL.
Mon Jun 12 15:02:37 1995 Doug Evans <dje@cygnus.com>
* configure: Restore code to make ld symlink if ! use_collect2.
* gcc.c (link_command_spec): Undo patch of May 11.
-nostdlib implies -nostartfiles again.
* dsp16xx.h (CROSS_LINK_SPEC): Likewise.
* i386/freebsd.h (LINK_SPEC): Undo patch of May 24.
Don't pass "-e start" if nostdlib.
* i386/sun.h (LINK_SPEC): Likewise.
* m68k/sun2o4.h (LINK_SPEC): Likewise.
* m68k/sun3.h (LINK_SPEC): Likewise.
* m68k/vxm68k.h (LINK_SPEC): Likewise.
* mips/netbsd.h (LINK_SPEC): Likewise.
* config/netbsd.h (LINK_SPEC): Likewise.
* rs6000/mach.h (LINK_SPEC): Likewise.
* sparc.h (LINK_SPEC): Likewise.
* sparc/vxsparc.h (LINK_SPEC): Likewise.
* gcc.c (link_command_spec): New argument -nodefaultlibs.
Sun Jun 11 20:47:53 1995 Stephen L Moshier (moshier@world.std.com)
* Makefile.in (fix-header.o): Depends on xsys-protos.h.
Sun Jun 11 15:07:58 1995 Tim Carver (timc@ibeam.intel.com)
* reload1.c (emit_reload_insns): Don't call HARD_REGNO_NREGS
on psuedo when clearing reg_last_reload_reg.
Sun Jun 11 14:07:05 1995 Philippe De Muyter (phdm@info.ucl.ac.be)
* m68k.md ({add,sub}di{_mem,3}): Patterns merged.
Sun Jun 11 13:43:26 1995 Torbjorn Granlund <tege@bozo.matematik.su.se>
* m68k.md (cmpdi matcher): Set cc_status before returning.
* config/xm-freebsd.h (DONT_DECLARE_SYS_SIGLIST): Define.
Sun Jun 11 13:38:49 1995 Jason Merrill <jason@phydeaux.cygnus.com>
* fixincludes (math.h): Keep declaration of abs on HPUX.
Sun Jun 11 12:31:42 1995 Richard Kenner (kenner@vlsi1.ultra.nyu.edu)
* stor-layout.c (variable_size): Do nothing if SIZE is constant.
* stmt.c (expand_asm_operands): See if output operand permits
register. If not, mark output addressable, call expand_operand
on it, and give error if not MEM.
* function.c (assign_parms): Handle promotions of both
passed and nominal modes separately and insert needed conversions.
(promoted_input_arg): Return 0 if nominal and passed modes differ.
* stmt.c (all_cases_count, case INTEGER_TYPE): Fix typo in checking
for integer bounds.
Sat Jun 10 08:55:25 1995 Richard Kenner (kenner@vlsi1.ultra.nyu.edu)
* libgcc2.c (_floatdidf): Correctly set float sizes.
* c-decl.c (c_decode_option, case "-Wall"): Don't set extra_warnings.
* Makefile.in (cpplib.o, fix-header.o): Update dependencies.
(cpperror.o, cppexp.o, cpphash.o): New rules, to show .h dependencies.
Fri Jun 9 18:06:10 1995 Doug Evans <dje@canuck.cygnus.com>
* cse.c (cse_basic_block): Fix test for whether block ends with a
barrier. Return next insn, not 0, if block ends in a barrier.
Fri Jun 9 17:58:29 1995 Paul Eggert <eggert@twinsun.com>
* fold-const.c (lshift_double): Replace `&' with `%' to fix typo.
([lr]shift_double): Truncate shift count only if SHIFT_COUNT_TRUNCATED.
Remove unnecessary `count >= prec' test.
* cexp.y (left_shift): Ignore integer overflow.
* cexp.y (skip_evaluation): New variable.
(&&, ||, ?:): Increment it in unevaluated subexpressions.
(/, %, integer_overflow): Suppress diagnostics if skip_evaluation != 0.
(yyerror): Clear skip_evaluation.
Fri Jun 9 17:49:05 1995 Torbjorn Granlund <tege@bozo.matematik.su.se>
* m68k.md (tstdi): Rewrite.
Fri Jun 9 17:28:55 1995 Per Bothner <bothner@cygnus.com>
* scan-decls.c (scan_decls): Handle declarations with
multiple comma-separated declarators.
Thu Jun 8 19:16:12 1995 Richard Earnshaw (rearnsha@armltd.co.uk)
* arm.md (mov[sd]f expands): Don't allow fp constants in pseudos
when TARGET_SOFT_FLOAT.
Thu Jun 8 19:11:43 1995 Jim Wilson <wilson@chestnut.cygnus.com>
* expmed.c (store_split_bit_field): When adjust arg in
BYTES_BIT_ENDIAN case, use number of bits in arg for MEM operands
and BITS_PER_WORD for other operands.
(extract_fixed_bit_field): Undo last change.
* unroll.c (verify_addresses): New function.
(find_splittable_givs): Use it instead of memory_address_p.
Thu Jun 8 18:58:18 1995 Torbjorn Granlund <tege@bozo.matematik.su.se>
* expmed.c (expand_divmod): Always check result of emit_store_flag.
Thu Jun 8 12:02:34 1995 David D Zuhn (zoo@armadillo.com)
* cpplib.c (cpp_push_buffer): Include filename in error message.
Thu Jun 8 11:53:45 1995 Richard Kenner (kenner@vlsi1.ultra.nyu.edu)
* function.c (assign_parms): Don't call promote_mode on arg
unless PROMOTE_FUNCTION_ARGS defined.
* rs6000.md (decrement_and_branch): Ensure label is operand 0.
* rs6000.md (aux_truncdfsf2): New pattern.
(movsf): Use it instead of invalid SUBREG and truncdfsf2.
* varasm.c (assemble_name): Disable warn_id_clash around
get_identifier call.
Wed Jun 7 17:22:25 1995 Philippe De Muyter (phdm@info.ucl.ac.be)
* configure (gdb_needs_out_file_path): New variable.
(m68k-motorola-sysv): Set gdb_needs_out_file_path if not using gas.
(.gdbinit): If gdb_needs_out_file_path is set, add a 'dir' command
for $(out_file).
Wed Jun 7 17:17:19 1995 Torbjorn Granlund <tege@bozo.matematik.su.se>
* fold-const.c (fold): When folding `<' type nodes, make true_value
and false_value have correct types.
Wed Jun 7 05:06:42 1995 Jason Merrill <jason@phydeaux.cygnus.com>
* collect2.c (COFF scan_prog_file): Use the AIX duplicate entry.
Tue Jun 6 18:43:09 1995 Jeffrey A Law (law@snake.cs.utah.edu)
* pa.h (FUNCTION_ARG_CALLEE_COPIES): Define.
Tue Jun 6 18:21:18 1995 Richard Kenner (kenner@vlsi1.ultra.nyu.edu)
* expr.c (expand_expr, case PLACEHOLDER_EXPR): Consider two types
identical if their TYPE_MAIN_VARIANTs are the same.
* c-decl.c (start_decl): Set DECL_COMMON before calling
decl_attributes.
* a29k.c (print_operands): Cast args to bcopy to char *.
* c-decl.c (duplicate_decls): Don't clear DECL_CONTEXT of
new decl if it is a function.
Tue Jun 6 17:57:44 1995 Eberhard Mattes (mattes@azu.informatik.uni-stuttgart.de)
* gcc.c (do_spec_1, case 'g'): Handle %O as suffix if MKTEMP_EACH_FILE.
Tue Jun 6 17:53:05 1995 Michael Meissner <meissner@cygnus.com>
* rs6000.c (expand_block_move): Update source and destination pointers
inside the loop moving the bytes, not outside.
Tue Jun 6 14:58:37 1995 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
* m68k.h (CONDITIONAL_REGISTER_USAGE): Don't mark pic reg as fixed.
* m68k.c (finalize_pic): Emit USE insn at start and end of function.
Tue Jun 6 13:46:57 1995 Jim Wilson <wilson@mole.gnu.ai.mit.edu>
* sh.c (print_operand): Check for annulled branches.
(output_movedouble): Handle SUBREG addresses.
(output_branch): Handle annulled branches.
(sh_expand_prologue): Correct number of saved registers for
varargs functions.
* sh.h: Add some comments.
* sh.md: Add some comments. Cleanup formatting.
(type attribute): Add pstore and call.
(return define_delay): Reorganize to make clearer.
(call/sfunc define_delay): Define.
(cbranch define_delay): Define to have annul-true delay slot.
(subsi3): Use arith_reg_operand for operand 2.
(shift patterns): Use const_int_operand instead of immediate_operand
for shift counts.
(push): Add pstore constraint case.
(movsi_i): Move t/z constraint pair to the front of the list.
(calli, call_valuei): Add "call" attribute.
Mon Jun 5 19:23:13 1995 Jim Wilson <wilson@chestnut.cygnus.com>
* sched.c (attach_deaths): In last change, use find_reg_note instead
of find_regno_note.
Mon Jun 5 19:17:31 1995 Tom Quiggle (quiggle@lovelace.engr.sgi.com)
* mips/iris5.h (MACHINE_TYPE): Say "IRIX 5.x", not "5.0".
(NO_DOLLAR_IN_LABEL): Undefine.
* mips.h (sdb_begin_function_line): New declaration.
(PUT_SDB_FUNCTION_END): New definition.
Mon Jun 5 18:56:10 1995 Michael Meissner <meissner@cygnus.com>
* rs6000.c (expand_block_move): Don't do block moves where we clobber
fixed numbers of regs, instead move just 1-8 bytes at a time.
* Makefile.in (STAGESTUFF): Copy files produced by -da and
-save-temps to the stage subdirectories.
Mon Jun 5 08:18:46 1995 Torbjorn Granlund <tege@bozo.matematik.su.se>
* combine.c (reg_dead_at_p): When scanning backwards, stop at BARRIER.
* m68k.c (print_operand): Handle 'R' for registers.
* m68k.md (cmpdi): Rewrite to avoid bogus matching constraints.
* optabs.c (expand_binop): In last change, don't defererence TARGET
if it is 0.
* pa.md (movsicc): Use MATCH_DUP for operand 4 and 5.
Mon Jun 5 08:14:56 1995 Jeffrey A Law (law@cs.utah.edu)
* pa.c (hppa_encode_label): Allocate stuff on permanent_obstack
rather than via malloc.
* c-common.c (decl_attributes): Fix typo in size passed to alloca.
Mon Jun 5 08:10:55 1995 Richard Kenner (kenner@vlsi1.ultra.nyu.edu)
* alpha.md: Use "some_operand" for patterns valid only during
reload and meant to handle adding more PLUS operators during
register elimination.
Mon Jun 5 07:31:53 1995 Stephen L Moshier (moshier@world.std.com)
* cse.c (simplify_unary_operation, case FLOAT, UNSIGNED_FLOAT):
Truncate to requested mode.
Sat Jun 3 22:08:51 1995 Jim Wilson <wilson@chestnut.cygnus.com>
* sched.c (attach_deaths): Don't add a REG_DEAD note if a REG_UNUSED
note is already present.
Sat Jun 3 18:36:57 1995 Richard Kenner (kenner@vlsi1.ultra.nyu.edu)
* pa.h (hppa_builtin_saveregs): Add declaration.
Sat Jun 3 18:11:26 1995 Jason Merrill <jason@phydeaux.cygnus.com>
* Makefile.in (scan-decls.o): Depends on cpplib.h.
Fri Jun 2 19:23:47 1995 Richard Kenner (kenner@vlsi1.ultra.nyu.edu)
* optabs.c (expand_binop): Don't use non-REG TARGET in 2-word case.
Thu Jun 1 19:30:30 1995 Tor Egge (tegge@flipper.pvv.unit.no)
* m88k.h (RETURN_POPS_ARGS): New argument.
* m88k/dolphin.ld: Added start of comment.
Thu Jun 1 19:12:28 1995 Richard Kenner (kenner@vlsi1.ultra.nyu.edu)
* configure (a29k-*-bsd*): Fix typo in last change.
Thu Jun 1 18:51:53 1995 Jim Wilson <wilson@chestnut.cygnus.com>
* expmed.c (extract_fixed_bit_field): For REG case, compute total_bits
from mode instead of assuming BITS_PER_WORD.
Thu Jun 1 18:34:31 1995 Michael Meissner <meissner@cygnus.com>
* rs6000.h (FIXED_R13): Default to 0.
({FIXED,CALL_USED}_REGISTERS): Use FIXED_R13 for register 13.
* sysv4.h (FIXED_R13): Define to be 1.
Wed May 31 20:57:26 1995 Torbjorn Granlund <tege@matematik.su.se>
* m68k.md ([su]mulsi3_highpart): Pass correct number of arguments to
const_uint32_operand.
* m68k.c (const_uint32_operand): Reject negative numbers.
* expmed.c (expand_mult_highpart): Use wide_op1 for all multiplies.
(expand_divmod): Undo Nov 12 change. Instead, add special case
for division by MIN_INT in signed TRUNC_DIV_EXPR case.
Wed May 31 20:44:21 1995 Philippe De Muyter (phdm@info.ucl.ac.be)
* m68k.md (one_cmpldi2): New pattern.
({a,l}shrdi{3,_const}): Allow 63 as shift count.
Wed May 31 14:56:31 1995 Richard Kenner (kenner@vlsi1.ultra.nyu.edu)
* varasm.c (assemble_start_function, assemble_variable):
Make sure first_global_object_name is in permanent obstack.
* reload1.c (alter_reg): Clean up setting of RTX_UNCHANGING_P
when making a MEM.
* reorg.c (struct resources): New field unch_memory.
(CLEAR_RESOURCES, mark_target_live_regs, dbr_schedule): Clear it.
(mark_{referenced,set}_resources, redundant_insn): Set it.
(fill_simple_delay_slots): Likewise.
(resource_conflicts_p): Test it.
* unroll.c (copy_loop_body): Fix typo in call to sets_cc0_p.
* integrate.c (output_inline_function): Don't call expand_function_end.
* calls.c (prepare_call_address): Only call use_reg on
static_chain_rtx if it is a REG.
* configure (a29k-*-bsd*): Use t-a29k.
* t-a29k: New file.
* a29k/t-a29kbare (LIBGCC1_TEST): New null definition.
* a29k/t-vx29k (LIBGCC1_TEST): Likewise.
Wed May 31 14:17:42 1995 Jeffrey A Law (law@snake.cs.utah.edu)
* configure (hppa*-*-bsd*): Do not run fixincludes.
(hppa*-*-osf*): Likewise.
(hppa*-*-lites*): Likewise.
* pa.h (PRINT_OPERAND_ADDRESS): Use "RR'" rather than "R'" for
symbolic addresses.
* pa.md (symbolic HIGH patterns): Likewise.
(symbolic LO_SUM pattern): Likewise.
Wed May 31 14:11:53 1995 Michael Meissner <meissner@cygnus.com>
* rs6000.md (all movstri recognizers): Eliminate updating the pointers.
* rs6000.c (expand_block_move): Don't pass argument of # bytes to
increment pointers by to movstrsi expanders.
* rs6000.c (rs6000_override_options): Fix typo with -mstring handling.
* rs6000.h (TARGET_SWITCHES): Set MASK_STRING_SET explicitly
if -mno-string, so that it can override the processor default.
Wed May 31 07:31:53 1995 Jason Merrill <jason@phydeaux.cygnus.com>
* c-common.c (truthvalue_conversion, BIT_AND_EXPR): Make sure that
the result has boolean_type_node.
Tue May 30 19:03:21 1995 J.T. Conklin <jtc@cygnus.com>
* stddef.h: Undefine _BSD_XXX_T_ if _GCC_XXX_T is defined on BSD
Net/2 derived systems.
Tue May 30 08:17:37 1995 Philippe De Muyter (phdm@info.ucl.ac.be)
* m68k.md (decrement_and_branch_until_zero): Operand 0 constraint
changed from "+g" to "+d*am".
(similar anonymous HImode pattern): Likewise.
* m68k.md (tstdi): Use tst/subx #0 instead of neg/negx.
Allow "a" and ">" for operand 0.
Mon May 29 19:24:43 1995 Niklas Hallqvist (niklas@appli.se)
* m68k.md (addsi_lshrsi_31): Use match_dup, not constraint "1",
for matching inputs.
Mon May 29 12:39:58 1995 Allen Briggs <briggs@rrinc.com>
* i386/isc.h ({STARTFILE,LIB,CPP}_SPEC): Handle -Xp like -posix.
* i386/x-isc3 (X_CFLAGS): Add -Xp.
Mon May 29 12:28:41 1995 J.T. Conklin (jtc@cygnus.com)
* configure (sparc-*-netbsd): Add missing asterisk at end.
Mon May 29 08:55:48 1995 Richard Kenner (kenner@vlsi1.ultra.nyu.edu)
* combine.c (recog_for_combine): New parm PADDED_SCRATCHES; set it.
(try_combine): Accumulate number of scratches and update max_scratch.
(simplify_set): Add extra parm to recog_for_combine.
* romp.md (call): Put USE for r0 in CALL_INSN; call call_internal
to emit insn.
(call_internal): New name for anonymous call.
(call_value, call_value_internal): Likewise.
* winnt/xm-winnt.h: Protect most definitions with #ifndef.
* alpha/xm-winnt.h: Include alpha/xm-alpha.h, then winnt/xm-winnt.h.
(POSIX): Undefine.
* xm-alpha.h: Don't include alloca.h for winnt.
Sun May 28 18:34:01 1995 Richard Kenner (kenner@vlsi1.ultra.nyu.edu)
* configure: Make sed commands more uniform.
* Makefile.in: Properly use $(srcdir) for files that have it
in their reference as a target of a rule.
(libgcc1.a): Add missing RANLIB_TEST use.
* stmt.c (expand_computed_goto): Call do_pending_stack_adjust.
Sun May 28 18:08:41 1995 Torbjorn Granlund <tege@mole.gnu.ai.mit.edu>
* m68k.md (divmodhi4, udivmodhi4): Use "dmsK" for operand 2.
Fri May 26 17:01:22 1995 Paul Eggert <eggert@twinsun.com>
* fixincludes: Fix bogus recursive <stdlib.h> in NEWS-OS 4.0C.
Fri May 26 08:02:14 1995 Michael Meissner (meissner@cygnus.com)
* c-typeck.c (initializer_constant_valid_p): For the CONSTRUCTOR
case, if the type is a record, recurse, just like for unions.
Thu May 25 07:56:14 1995 Paul Eggert <eggert@twinsun.com>
* fixincludes: Add `sel', `tahoe', `r3000', `r4000' to the
list of pre-ANSI symbols that need to be surrounded with __ __.
Allow white space between `#' and `if' when looking for lines to patch.
* objc/sarray.h (PRECOMPUTE_SELECTORS, struct soffset):
Use #ifdef __sparc__, not sparc.
* m68k.md (addsi_lshrsi_31, ashldi_const, ashrdi_const, lshrdi_const):
Replace `mov' with `move'.
Thu May 25 07:35:37 1995 Allen Briggs <briggs@rrinc.com>
* libgcc2.c (L_eh, i386): Remove in-line comments in assembly
code--the '#' character is not valid for the SYSV as.
Thu May 25 07:28:54 1995 Pat Rankin (rankin@eql.caltech.edu)
* Makefile.in (BC_ALL): Restore it from May 22 change; vms uses it.
(STAGESTUFF): Use it.
Thu May 25 07:11:56 1995 Richard Kenner (kenner@vlsi1.ultra.nyu.edu)
* alpha.c (alpha_emit_set_const): Don't call expand_binop for
other than add if SImode and can't create pseudos.
Wed May 24 21:38:24 1995 Jim Wilson <wilson@cygnus.com>
* sched.c (reemit_notes): New function.
(schedule_block): Call reemit_notes twice. Reorganize code for
handling SCHED_GROUP_P insns, so that reemit_notes works.
* sh/sh.c (shiftcosts, genshifty_op): Add SH3 support.
* sh/sh.md (ashlsi3, lshrsi3): Add SH3 support.
(ashlsi3_d, ashrsi3_d, lshrsi3_d): New patterns for SH3.
(ashrsi2_31): Remove r/!r constraint.
Wed May 24 17:00:47 1995 Jason Merrill <jason@phydeaux.cygnus.com>
* tree.c (type_list_equal): Call simple_cst_equal before checking
types.
Wed May 24 16:49:49 1995 Douglas Rupp (drupp@cs.washington.edu)
* Makefile.in (libgcc2.a): Handle case of separate srcdir.
Wed May 24 16:22:01 1995 Paul Eggert <eggert@twinsun.com>
* configure: Define $(MAKE) if `make' doesn't.
Wed May 24 15:50:51 1995 Doug Evans <dje@cygnus.com>
* dsp16xx.h (CROSS_LINK_SPEC): ENDFILE_SPEC moved to -nostartfiles.
* i386/freebsd.h (LINK_SPEC): Don't pass "-e start" if nostartfiles
rather than nostdlib.
* i386/sun.h (LINK_SPEC): Likewise.
* m68k/sun2o4.h (LINK_SPEC): Likewise.
* m68k/sun3.h (LINK_SPEC): Likewise.
* m68k/vxm68k.h (LINK_SPEC): Likewise.
* mips/netbsd.h (LINK_SPEC): Likewise.
* config/netbsd.h (LINK_SPEC): Likewise.
* rs6000/mach.h (LINK_SPEC): Likewise.
* sparc.h (LINK_SPEC): Likewise.
* sparc/vxsparc.h (LINK_SPEC): Likewise.
* m88k/m88k.h (FUNCTION_ARG_BOUNDARY): Use GET_MODE_BITSIZE.
Wed May 24 15:44:04 1995 Jason Merrill <jason@phydeaux.cygnus.com>
* fold-const.c (fold): Make sure that a folded TRUTH_NOT_EXPR
retains the same type.
* c-common.c (truthvalue_conversion): Also accept TRUTH_NOT_EXPR.
Wed May 24 15:41:51 1995 Richard Kenner (kenner@vlsi1.ultra.nyu.edu)
* cplus-dem.c (strstr, strncmp, strlen): Remove declarations.
* tree.c (type_list_equal, simple_cst_list_equal, index_type_equal):
Check for simple_cst_equal return value of -1.
Wed May 24 10:05:24 1995 Michael Meissner <meissner@cygnus.com>
* libgcc1-test.c (start, _start): Provide declarations, so that
the GNU linker doesn't give a warning message about defaulting the
start address.
* rs6000/sysv4.h (STRIP_NAME_ENCODING): Redefine back to the
original defination, rather than the defination used in rs6000.h.
(ASM_OUTPUT_SOURCE_LINE): Use STRIP_NAME_ENCODING.
* rs6000.h (STRIP_NAME_ENCODING): Skip leading '*'.
* rs6000.h (MASK_STRING_SET, TARGET_STRING_SET): Add target
flags bit for whether -mstring was actually used.
(TARGET_SWITCHES): Add MASK_STRING to all power targets. Set
MASK_STRING_SET for -mstring and -mno-string.
(TARGET_DEFAULT): Add MASK_STRING.
* rs6000.c (rs6000_override_options): Add MASK_STRING to
all power targets. Make an explicit -mstring/-mno-string override
the -mcpu=processor default.
* rs6000/eabile.h (CPP_SPEC): Copy from sysvle.h to provide the
appropriate little endian defaults.
* rs6000/sysv4.h (ASM_OUTPUT_SOURCE_LINE): Use assemble_name to
output the canonical name.
Wed May 24 01:21:15 1995 Jason Merrill <jason@phydeaux.cygnus.com>
* rs6000.h (STRIP_NAME_ENCODING): Define.
(RS6000_OUTPUT_BASENAME): Use it.
Tue May 23 19:54:21 1995 Doug Evans <dje@cygnus.com>
* gcc.c (link_command_spec): Move ENDFILE_SPEC from -nostdlib
to -nostartfiles.
Tue May 23 17:01:50 1995 Jim Wilson <wilson@cygnus.com>
* alpha.md (negsi2-2): Change output pattern to #.
* mips.c (embedded_pic_offset): Output RTL to initialize
embedded_pic_fnaddr_rtx.
(mips_finalize_pic): Delete.
* mips.h (mips_finalize_pic): Delete declaration.
(FINALIZE_PIC): Delete.
(INIT_EXPANDERS): Clear embedded_pic_fnaddr_rtx.
* mips.md (get_fnaddr): Add = to output contraint.
* sh.c (shift_amounts): Correct entry for shifts by 29.
* sh.md (sett): New pattern.
(movsi_i): Change source constraint for move to T reg to be 'z'.
* mips/ecoff.h (STARTFILE_SPEC): Define to null string.
* mips/elfl.h, mips/elfl64.h: Correct typo in comment.
* mips/elflorion.h, mips/elforion.h (MIPS_CPU_DEFAULT): Delete.
* mips.c (override_options): Delete #ifdef MIPS_CPU_DEFAULT code.
Add #ifdef MIPS_CPU_DEFAULT_STRING code before the first
mips_cpu_string test.
Tue May 23 07:22:36 1995 Richard Kenner (kenner@vlsi1.ultra.nyu.edu)
* romp.c (hash_rtx): Avoid warning on int-to-pointer conversion.
(output_fpops): Cast args to bcopy to char *.
* cpplib.c (initialize_builtins): Add missing parm to timestamp call.
* Makefile.in (install-libobjc): Don't depend on libobjc.a.
* c-parse.in: Objc shift/reduce conflicts now 48.
(parm): Use setspecs/restore here.
(parmlist_or_identifiers): Not here.
Mon May 22 19:30:30 1995 Doug Evans <dje@cygnus.com>
* h8300.md (movsf_h8300h): Add missing post-inc case to constraints.
Mon May 22 14:38:36 1995 Michael Meissner <meissner@cygnus.com>
* rs6000.c (rs6000_override_options): Do SUBTARGET_OVERRIDE_OPTIONS
here.
* rs6000.h (OVERRIDE_OPTIONS): Not here.
* rs6000.c (expand_block_move): Handle moves without string
instructions by generating a series of loads and stores.
(output_prolog): Support -mno-toc on V.4 and eabi systems.
* rs6000/sysv4.h (TARGET_SWITCHES): Add -mtoc and -mno-toc.
(SUBTARGET_OVERRIDE_OPTIONS): Add some warnings for incompatible
switches.
(TOC_SECTION_FUNCTION): Make -mno-toc like -mrelocatable in that
we don't put the minimal toc pointer in the global toc section.
(LINK_SPEC): Use -oformat to set link output format, not -m.
* rs6000/t-eabigas (MULTILIB_OPTIONS, MULTILIB_DIRNAMES): Build
libgcc.a variants with -mno-toc support.
* rs6000/t-ppcgas (MULTILIB_OPTIONS, MULTILIB_DIRNAMES): Ditto.
Mon May 22 07:10:52 1995 Richard Kenner (kenner@vlsi1.ultra.nyu.edu)
* cplus-dem.c (mystrstr): Replacement for strstr.
* configure: Split up long sed command.
* Makefile.in (SYMLINK): Deleted; unused.
(oldobjext): Deleted; no longer used.
(FLAGS_TO_PASS): Include objext and exeext.
(STAGESTUFF, protoize.o, unprotoize.o): Use $(objext), not .o.
(test_protoize_simple, compare{,3}, gnucompare{,3}): Likewise.
(STAGESTUFF, specs, gcc-cross, collect2): Add missing $(exeext).
(libgcc1.null, libgcc[12].a, stage[1-4]): Likewise.
(xgcc, cc1, cc1obj, enquire): Use $@ instead of filename for -o value.
(collect2, mips-tfile, mips-tdump, gen*): Likewise.
(bi-arity, bi-opcode, bi-opname, cccp, cppmain): Likewise.
(protoize, unprotoize, gen-protos, fix-header): Likewise.
(crtbegin.o, crtend.o): Don't use -o; move output to proper
filename (using objext) instead.
(BI_ALL, BC_ALL, bytecode): Deleted; unused.
(bi-*.o, cexp.o, stamp-{proto,fixinc}): Remove unneeded $(srcdir).
(getopt{,1}.o, SYSCALLS.c.X): Likewise.
(install-driver): New target.
(install-normal): Depend on it.
(install-common): Don't depend on xgcc.
(maketest): Deleted; no longer used.
(stage[1-4]): Use name collect-ld, not real-ld.
(risky-stage[1-4]): Use stage[1-4] as dependencies; don't copy.
* alpha/config-nt.bat, i386/config-nt.bat: Make {,h,t}config.h
and tm.h by writing a single #include line.
Update way specs.h and options.h are written.
* alpha/config-nt.sed, i386/config-nt.sed: Set new variables
into Makefile.
Build winnt.obj.
Edit CCCP definition.
* alpha/x-winnt, i386/x-winnt (oldobjext): Deleted.
Add rules for .c.obj, .adb.obj, and .ads.obj.
(LIB2FUNCS_EXTRA, spawnv.o): New rules.
* i386/x-winnt (objext): Now .obj, not .o.
* gcc.c (HAVE_OBJECT_SUFFIX): New macro.
(process_command): Convert x.o to x.foo for OBJECT_SUFFIX of ".foo".
(do_spec_1): Avoid shadow variable "i" and always use for loop var.
* c-decl.c (finish_decl_top_level): Removed; no longer used.
* objc-act.c: Numerous formatting changes.
(NULLT): Deleted; all uses changed to NULL_TREE.
(get_{static,object}_reference, objc_add_static_instance):
Use push_obstacks instead of saving obstacks manually.
(build_{selector,class}_reference_decl): Likewise.
(build_objc_string_decl, build_protocol_reference): Likewise.
(comp_{method,proto}_with_proto): Likewise.
(create_builtin_decl, synth_module_prologue): Set DECL_ARTIFICIAL
for internal objects.
(build_{selector,class}_reference_decl, add_objc_decls): Likewise.
(generate_objc_symtab_decl, build_module_descriptor): Likewise.
(build_protocol_reference): Likewise.
(build_objc_string_decl, synch_forward_declarations): Likewise.
Delete call to end_temporary_allocation.
(generate_static_references, generate_strings): Likewise.
(build_selector_translation_table, generate_category): Likewise.
(generate_{ivars,protocol}_list, build_protocol_reference): Likewise.
(build_objc_string_object): If next_runtime, put everything in
permanent obstack.
(objc_add_static_instance): Use build_decl instead of start_decl
and finish_decl_top_level.
(build_{class_reference,objc_string}_decl): Clear DECL_CONTEXT.
(start_class): Exit with FATAL_EXIT_CODE, not 1.
(add_objc_decls): Don't set DECL_IN_SYSTEM_HEADER.
* tree.c (valid_machine_attribute): Handle attribute on
pointer-to-function types.
Sun May 21 17:16:37 1995 J. T. Conklin <jtc@cygnus.com>
* mips/netbsd.h (HAVE_STRERROR): Remove.
* mips/xm-netbsd.h: New file.
* mips/t-mips-netbsd: Deleted.
* configure (mips-dec-netbsd): Use xm-netbsd.h and t-libc-ok.
Sun May 21 17:16:37 1995 Arne H. Juul (arnej@pvv.unit.no)
* mips/netbsd.h: Use __start as entry point. Ifdef some
paths on CROSS_COMPILE.
Sun May 21 08:39:26 1995 Richard Kenner (kenner@vlsi1.ultra.nyu.edu)
* c-parse.in (datadef, fndef, ivar_decl, mydecls):
Restore declspec_stack since setspecs is used.
(parmlist_or_identifiers): Use setspecs before parsing parms
and restore after parsing parms.
Sun May 21 01:04:52 1995 Jeffrey A. Law <law@snake.cs.utah.edu>
* pa.c (hppa_encode_label): New variable "permanent" to
where/how memory is allocated for the new label. All
callers changed.
Sat May 20 16:53:30 1995 Mike Meissner <meissner@cygnus.com>
* rs6000.md (insv, extz): Fail if the structure is QI or HI reg to
avoid paradoxical subreg's being created in RTL phase, which uses
SImode to load from memory if structure is later moved to stack.
Sat May 20 06:44:59 1995 Philippe De Muyter (phdm@info.ucl.ac.be)
* m68k.md (udivmodhi4): Output "divu" instead of "divs".
Sat May 20 06:11:32 1995 Richard Kenner (kenner@vlsi1.ultra.nyu.edu)
* reload.c (push_reload): Don't reload inside a SUBREG
when SUBREG_WORD is nonzero.
* c-decl.c (shadow_tag_warned): Don't warn about useless keyword
if in system header file.
* tree.c (simple_cst_equal): Don't look at language-specific
nodes since we don't know what's in them.
* cpperror.c: #include config.h before any other .h file.
* collect2.c: Likewise.
* i386/config-nt.bat: Add missing ^M on two lines.
Add case for Fortran; fix typo in Ada case.
* alpha/config-nt.bat: Add case for Fortran; fix typo in Ada case.
* m68k/t-next (LIBGCC1, CROSS_LIBGCC1): Make not, not "libgcc1.null".
(OTHER_FIXINCLUDES_DIRS, LIMITS_H_TEST): Delete from here.
* m68k/x-next (OTHER_FIXINCLUDES_DIR, LIMITS_H_TEST): Move to here.
Fri May 19 19:30:20 1995 Stan Cox (gcc@dg-rtp.dg.com)
* crtstuff.c: Added reference to INIT_SECTION_PREAMBLE for systems that
do something which must be undone prior to __do_global_ctors.
Fri May 19 19:27:08 1995 Alan Modra <alan@SPRI.Levels.UniSA.Edu.Au>
* i386/linux-aout.h (CPP_SPEC): Add defines for -fPIC.
* i386/linux-oldld.h (CPP_SPEC): Likewise.
Fri May 19 17:46:28 1995 Philippe De Muyter (phdm@info.ucl.ac.be)
* collect2.c (strstr): Deleted.
* cplus-dem.c (strstr): Define ifndef POSIX.
Fri May 19 11:16:51 1995 Per Bothner <bothner@kalessin.cygnus.com>
* cpplib.c (collect_expansion): Don't escape '@' inside string.
Fri May 19 06:59:21 1995 Pat Rankin (rankin@eql.caltech.edu)
* vmsconfig.com (process_objc_lib, configure_makefile): New routines.
(bc_all.list, ./vax.md, objc-objs.opt, objc-hdrs.list): New files
created at config time.
(bc_all.opt, ./md.): No longer created.
* make-cc1.com: Handle revised filenames from vmsconfig.com;
(DO_OBJCLIB): New variable, plus code to compile objc/*.{c,m}.
Wed May 17 16:15:31 1995 Torbjorn Granlund <tege@cygnus.com>
* i960.c (i960_output_ldconst): New code for XFmode.
Also, move SFmode code to immediately after DFmode code.
(S_MODES, D_MODES): Handle XFmode.
(XF_MODES): Was TF_MODES, handle XFmode instead of TFmode.
(hard_regno_mode_ok): Replace TFmode with XFmode.
(i960_output_long_double): New function.
* i960.h (DATA_ALIGNMENT): Define.
(ROUND_TYPE_ALIGN): Align XFmode scalars at 128 bit boundaries.
(ROUND_TYPE_SIZE): Round up the size of XFmode objects to 128 bits.
(CONST_DOUBLE_OK_FOR_LETTER_P): Use CONST0_RTX and CONST1_RTX
so that all FP modes are recognized.
(ASM_OUTPUT_LONG_DOUBLE): Define.
* i960.md: Change all TFmode patterns to have XFmode.
(movxf recognizer, frame version): Use movt, ldt, and stt.
(movxf recognizer, non-frame version): Delete.
(extenddfxf2): Delete * before f constraint.
(extendsfxf2): Likewise.
Wed May 17 17:53:35 1995 Jim Wilson <wilson@mole.gnu.ai.mit.edu>
* unroll.c (unroll_loop): Increment copy_start_luid if copy_start
is loop_start.
Wed May 17 17:44:57 1995 Lee Iverson <leei@Canada.AI.SRI.COM>
* fold-const.c (invert_truthvalue, case CLEANUP_POINT_EXPR): New case.
Tue May 16 18:51:16 1995 Michael Meissner <meissner@cygnus.com>
* rs6000/rs6000.h (TARGET_SWITCHES): Add -mstring to enable string
instructions, and -mno-string to disable them.
(MOVE_MAX): Don't test TARGET_MULTIPLE anymore.
(MAX_MOVE_MAX): Set to 8, not 16.
(expand_block_move): Add declaration.
* rs6000/rs6000.c (expand_block_move): New function to expand
block moves when -mstring is used.
* rs6000/rs6000.md (movti): Use TARGET_STRING, not TARGET_MULTIPLE.
(load_multiple, store_multiple): Ditto.
(string insns): Add 8, 6, 4, 2, and 1 register variants for using
the native string instructions if -mstring.
* rs6000/sysv4.h (CPP_SPEC): If little endian, define
_LITTLE_ENDIAN and set littleendian assertion. If big endian,
define _BIG_ENDIAN and set bigendian assertion.
* rs6000/sysv4le.h (CPP_SPEC): Copy from sysv4.h, and change
default to little endian.
* rs6000/rs6000.c (override_options): Check for -mmultiple and
-mstring on little endian systems here.
* rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't do the check
here.
Tue May 16 18:36:41 1995 Douglas Rupp (drupp@cs.washington.edu)
* alpha.c: Changed WINNT to _WIN32.
* alpha/config-nt.bat, i386/config-nt.bat: Added commands to
generate specs.h and options.h.
* i386/config-nt.sed: Changed link32 to link.
* winnt/ld.c (main): Removed call to free.
* configure.bat: Added line to echo usage on invalid input.
* gcc.c (fix_argv): Removed call to free.
* gcc.c, getpwd.c, protoize.c, sdbout.c: Changed WINNT to _WIN32.
* toplev.c: Likewise.
Tue May 16 18:04:47 1995 Richard Kenner (kenner@vlsi1.ultra.nyu.edu)
* toplev.c (pfatal_with_name, fatal_io_error, vfatal):
Use FATAL_EXIT_CODE instead of magic number.
* cccp.c, cpplib.c, cpplib.h: Use FATAL_EXIT_CODE instead
of FAILURE_EXIT_CODE.
* fix-header.c, gen-protos.c: Likewise.
* cpperror.c, cppmain.c: Likewise.
Include config.h #ifndef EMACS.
* xm-alpha.h, xm-rs6000.h, xm-vms.h (FAILURE_EXIT_CODE): Remove.
Tue May 16 17:46:57 1995 Adam Fedor <fedor@colorado.edu>
* objc/archive.c (__objc_write_class): Write class version.
(__objc_write_selector, objc_{write,read}_selector): Handle null
selector.
* objc/sarray.h (struct sarray): Make capacity size_t.
* objc/sarray.c (sarray_realloc): Make array index variables size_t.
Tue May 16 06:59:08 1995 Paul Eggert <eggert@twinsun.com>
* dsp16xx.c (print_operand_address): Fix misspellings in messages.
* i370/mvs.h (FUNCTION_PROFILER): Likewise.
* mips-tdump.c (type_to_string): Likewise.
* print-tree.c (print_node): Likewise.
* protoize.c (edit_fn_definition): Fix mispelled local `have_flotsam'.
* objc/sendmsg.c (__objc_init_install_dtable): Fix misspelling
in name of local label `already_initialized'.
* winnt/winnt.h (STDC_VALUE): Was misspelled.
* m68k/ccur-GAS.h (FUNCTION_BOUNDARY): Was misspelled.
* 1750a.h (DEFAULT_PCC_STRUCT_RETURN): Was misspelled.
Mon May 15 23:41:25 1995 Jeffrey A. Law <law@snake.cs.utah.edu>
* pa.h (ASM_OUTPUT_EXTERNAL_LIBCALL): Make sure to encode section
info for all libcalls.
Mon May 15 20:58:00 1995 Jason Merrill <jason@phydeaux.cygnus.com>
* collect2.c (strstr): Define ifndef POSIX.
* defaults.h (SUPPORTS_WEAK): Provide default.
* aoutos.h, sparc/sunos4.h: Don't support weak symbols.
* netbsd.h, svr4.h, i386/freebsd.h, i386/osfrose.h,
m88k/m88k.h: Define ASM_WEAKEN_LABEL instead of WEAK_ASM_OP.
* c-pragma.h: Check ASM_WEAKEN_LABEL instead of WEAK_ASM_OP.
HANDLE_PRAGMA_WEAK is never defined in a tm.h file.
* c-decl.c (duplicate_decls): Propagate DECL_WEAK.
* tree.h (DECL_WEAK): New macro.
(tree_decl): Add weak_flag.
* varasm.c (assemble_start_function): Declare the symbol weak if
appropriate.
(assemble_variable): Ditto.
(assemble_alias): Ditto. Mark the decl as written.
(declare_weak): Check for weak declaration after definition.
Set DECL_WEAK.
(weak_finish): Use ASM_WEAKEN_LABEL.
* libgcc2.c: The C++ free-store management functions are weak
aliases on targets that always support them.
Mon May 15 19:01:43 1995 Richard Kenner (kenner@vlsi1.ultra.nyu.edu)
* configure (out_object_file): New variable; put value in Makefile.
* Makefile.in (out_object_file): Use in place of aux-output.o.
* fold-const.c (const_binop): Don't pass OVERFLOW to force_fit_type
if type is unsigned.
Mon May 15 18:48:26 1995 Paul Eggert <eggert@twinsun.com>
* install.sh (transformbasename): Fix misspelling.
* tahoe.h (CHECK_FLOAT_VALUE): Fix misspelling of OVERFLOW parameter.
* i386.h (VALID_MACHINE_{DECL,TYPE_ATTRIBUTE): Fix typo.
* fx80.h (CHECK_FLOAT_VALUE): Fix misspelled use of parameter.
* a29k.c (spec_reg_operand): Fix misspelling of `default:'.
Mon May 15 18:36:41 1995 Philippe De Muyter (phdm@info.ucl.ac.be)
* m68k.md (b{eq,ne,ge,lt}0_di): Fixed for non-MOTOROLA syntax.
* m68k/xm-mot3300.h (alloca): Extern decl added for non-GNU compiler.
Mon May 15 13:14:29 1995 Per Bothner <bothner@kalessin.cygnus.com>
* cppexp.c (cpp_reader): Test for '#' (start of assertion) *after*
skipping hspace, not before.
Mon May 15 08:13:54 1995 Pat Rankin (rankin@eql.caltech.edu)
* vmsconfig.com: Construct options.h and specs.h to #include
all "*/lang-{options|specs}.h" files found.
Sun May 14 21:32:49 1995 Doug Evans <dje@cygnus.com>
* alpha/alpha.md (movsicc, case NE): Don't generate unrecognizable
insn.
(movdicc, case NE): Likewise.
Sun May 14 15:44:54 1995 Jim Wilson <wilson@mole.gnu.ai.mit.edu>
* unroll.c (unroll_loop): Make local_regno have size
max_reg_before_loop. Don't do local register optimization if
copy_end has no INSN_LUID.
Sun May 14 10:38:23 1995 Richard Kenner (kenner@vlsi1.ultra.nyu.edu)
* objc-act.c (start_method_def): Mark _self as possibly unused.
* configure: Create specs.h and options.h from */lang-specs.h
and */lang-options.h.
Set lang_specs_files and lang_options_file variables in Makefile.
* Makefile.in (lang_{specs,options}_files): New variables.
(gcc.o): Depends on $(lang_specs_files).
(toplev.o): Depends on $(lang_options_file); merge two dep lists.
(distclean): Remove spes.h and options.
* gcc.c (default_compilers): Remove entries for Ada, C++, Chill,
and Fortran; #include specs.h instead.
* toplev.c (lang_options): Remove entries for Ada, C++, and Fortran;
include options.h instead.
Sat May 13 23:11:21 1995 DJ Delorie <dj@delorie.com>
* configure (i[345]86-go32-msdos, i[345]86-*-go32): New targets.
Sat May 13 10:58:38 1995 Jim Wilson <wilson@cygnus.com>
* loop.c (record_giv): When computing replaceable, use
back_branch_in_range_p instead of looking for branches to named
labels.
* loop.h (back_branch_in_range_p): Declare.
* unroll.c (back_branch_in_range_p): No longer static.
Sat May 13 06:47:11 1995 Richard Kenner (kenner@vlsi1.ultra.nyu.edu)
* combine.c (simplify_shift_count, case LSHIFTRT): Don't merge
shifts of different modes if first is any right shift.
Sat May 13 05:39:09 1995 Richard Earnshaw (rearnsha@armltd.co.uk)
* configure (arm-semi-aout): New configuration.
* config.sub: Add support for semi-hosted ARM.
* arm/t-semi, arm/semi.h: New files.
Fri May 12 21:51:22 1995 Doug Evans <dje@cygnus.com>
* flow.c (find_basic_blocks): Only perform n_basic_blocks sanity
check on first pass, and on second pass ensure it has the correct
value.
Fri May 12 19:23:11 1995 Jim Wilson <wilson@cygnus.com>
* c-typeck.c (build_binary_op): Warn when ~unsigned is compared
against unsigned, and type promotions result in an unexpected
answer.
Fri May 12 19:10:21 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
* configure (*-*-gnu*): Always use ELF; set tm_file=${cpu_type}/gnu.h.
* config/i386/gnu.h: Contents replaced with old i386/gnuelf.h.
* config/i386/gnuelf.h: File removed.
Fri May 12 17:29:57 1995 Ken Raeburn (raeburn@cygnus.com)
* m68k/lb1sf68.asm (__IMMEDIATE_PREFIX__): Default to #.
(IMM): New macro.
(all code): Use IMM macro instead of hardcoding # for immediate
operands.
Fri May 12 16:52:10 1995 Philippe De Muyter (phdm@info.ucl.ac.be)
* m68k.c (output_scc_di): New function.
(extend_operator) : Allow DImode target.
* m68k.h (HARD_REGNO_MODE_OK): Don't allow d7/a0 as DImode reg pair.
* m68k.md (tstdi, cmpdi, addsi_lshrsi_31, ashldi_extsi): New patterns.
(extendqidi2, extendhidi2, extendsidi2): Allow "general_operand"
instead of "register_operand" 0.
(adddid_sexthishl32, subdid_sexthishl32, subdi_dishl32): Likewise.
(adddi_dilshr32): Operand 0 constraint changed from "ro" to "do";
Code generation fixed.
(adddi_mem, subdi_mem): Fixed for "<" and ">" operand 0.
(adddi3, subdi3): Operand 2 constraint changed from "ao" to "*ao"
(ashldi_sexthi, ashrdi_const32): Allow only "register_operand"
instead of "general_operand" 0.
(ash[lr]di_const, ash[lr]di3): Allow also 8 and 16 as shift count.
(subreg1ashrdi_const32): Pattern deleted.
(subreghi1ashrdi_const32, subregsi1ashrdi_const32): New pattern.
(lshrsi_31): New implementation.
(scc0_di, scc_di, beq0_di, bne0_di, bge0_di, blt0_di): New patterns.
Fri May 12 16:50:49 1995 Jeffrey A. Law <law@mole.gnu.ai.mit.edu>
* pa.md (bb patterns): Fix bugs in length computation exposed by
recent branch shortening and genattrtab changes.
Fri May 12 16:22:27 1995 Ken Raeburn <raeburn@cygnus.com>
* cccp.c (enum node_type): Add T_IMMEDIATE_PREFIX_TYPE.
(special_symbol): Handle it; emit value of IMMEDIATE_PREFIX.
(IMMEDIATE_PREFIX): Default to empty string.
(initialize_builtins): Install __IMMEDIATE_PREFIX__ builtin,
parallel to __REGISTER_PREFIX__.
Fri May 12 14:40:03 1995 Pat Rankin (rankin@eql.caltech.edu)
* cccp.c: #if VMS, don't define `stat' macro to be VMS_stat.
Compare enums explicitly to 0 to work around VAX C bug.
(do_include): Cast alloca's value.
* make-cc1.com (bc_loop): Process comma-separated list rather
than space-separated one; restore .h suffix stripped by vmsconfig;
(loop1): More robust handling of directory prefix on file names.
* vmsconfig.com (TPU makefile.in): Reorganize and reformat code.
Make generated .opt files have more consistent format (all comma
separated, excess whitespace eliminated);
(additional_compiler): New routine.
(process_makefile): Use it to handle cc1plus via cp/Make-lang.in.
Fri May 12 13:35:07 1995 Doug Evans <dje@cygnus.com>
* arm.h: Replace ARM_REG_PREFIX with REGISTER_PREFIX.
Replace ARM_COMMENT_CHAR with ASM_COMMENT_START.
(REGISTER_PREFIX): Define.
(USER_LABEL_PREFIX, LOCAL_LABEL_PREFIX): Define.
(SECONDARY_OUTPUT_RELOAD_CLASS): Handle DFmodes only if
TARGET_HARD_FLOAT.
(PREDICATE_CODES): Add soft_df_operand.
* arm.c: Replace ARM_REG_PREFIX with REGISTER_PREFIX.
Replace ARM_COMMENT_CHAR with ASM_COMMENT_START.
(arm_asm_output_label): Use USER_LABEL_PREFIX.
(soft_df_operand): New function.
* arm.md (movsicc): New pattern.
(movsfcc, movdfcc, *movsicc_insn, *movsfcc_hard_insn): Likewise.
(*movsfcc_soft_insn, *movdfcc_insn): Likewise.
(*movdf_soft_insn): Rewrite.
(movsi matcher): Fix typo in type attribute.
Fri May 12 10:25:40 1995 Michael Meissner (meissner@cygnus.com)
* i386.h (TARGET_RTD): Use MASK_RTD, not MASK_REGPARM.
(TARGET_SWITCHES): Add -m{,no-}align-double switch.
(TARGET_OPTIONS): Add -mregparm= switch to set number of registers
to use for passing arguments. Add -malign-loops= switch to set
the alignment for loops. Add -malign-jumps= switch to set the
alignment for code that is jumped to. Add -malign-functions=
switch to set the initial alignment of functions.
(TARGET_REGPARM): Delete, in favor of -mregparm=
(TARGET_SWITCHES): Delete -mregparm, add -mdebug-arg switches.
(RETURN_POPS_ARGS): Call i386_return_pops_args to do the real work.
(VALID_MACHINE_DECL_ATTRIBUTE): Define as function call.
(VALID_MACHINE_TYPE_ATTRIBUTE): Define as function call.
(COMP_TYPE_ATTRIBUTES): Define as function call.
(REGPARM_MAX): Maximum number of regs to use for passing arguments.
(CUMULATIVE_ARGS): Make this a structure, not an int.
(INIT_CUMULATIVE_ARGS, FUNCTION_ARG{,_ADVANCE}): Call function.
(FUNCTION_ARG_PARTIAL_NREGS): Likewise.
(MAX_CODE_ALIGN): Maximum value to align loops/jumps to.
(BIGGEST_ALIGNMENT): Return 64 if -malign-double, 32 otherwise.
(ASM_OUTPUT_ALIGN_CODE): Use value of -malign-jumps= switch.
(ASM_OUTPUT_LOOP_ALIGN): Use value of -malign-loops= switch.
(toplevel): Declare all new functions and external variables added
in i386.c.
* i386.c (i386_regparm_string, i386_regparm): New variables
for -mregparm= switch to set the number of registers to use for
passing arguments.
(i386_align_loops_string, i386_align_loops): New variables for
-malign-loops= switch to set alignment to use for loops.
(i386_align_jumps_string, i386_align_jumps): New variables for
-malign-jumps= switch to set alignment to use for labels that are
jumped to.
(override_options): Support new switches.
(i386_valid_decl_attribute_p): New function to validate decl
specific attributes. Presently returns 0.
(i386_valid_type_attribute_p): New function to validate type
specific attributes. Recognize "stdcall", which says function
with fixed numbers of arguments is responsible for popping stack,
"cdecl", which says to use the normal C calling sequence, even if
-mrtd is used, and "regparm", which specifies the number of
registers to use for passing arguments.
(i386_comp_type_attributes): New function, to validate whether
attributes are compatible.
(i386_return_pops_args): New function, to return whether or not
the function pops its argument list or not, taking into account
-mrtd, and the stdcall/cdecl attributes.
(init_cumulative_args): Rewrite as a function, taking variable
argument functions, and regparm support into account.
(function_arg{,_advance,_partial_nreg}): Likewise.
(print_operand): Support %J, to print appropriate jump insn.
* i386.md (decrement_and_branch_until_zero): Define pattern,
so that loops that count down to zero, don't have an unneeded
compare after the decrement. Add a general insn recognizer for
add to a value and compare against zero.
* i386/go32.h, i386/winnt.h (VALID_MACHINE_DECL_ATTRIBUTE):
Delete, code folded into the mainline.
(RETURN_POPS_ARGS): Likewise.
* i386/winnt.h (ENCODE_SECTION_INFO): The stdcall attribute is now
stored on the type field, rather than the decl.
* i386/gas.h (ASM_OUTPUT_ALIGN_CODE, ASM_OUTPUT_LOOP_ALIGN): Use
i386_align_{loops,jumps} variables to do alignment.
* i386/osfrose.h, i386/svr3dbx.h: Likewise.
Fri May 12 12:48:19 1995 Richard Kenner (kenner@vlsi1.ultra.nyu.edu)
* stor-layout.c (layout_type, case ARRAY_TYPE): Compute length using
MAX of length and zero if sizetype signed and neither bound constant.
* i386/gnuelf.h, i386/linux-oldld.h, i386/lynx-ng.h, i386/v3gas.h:
Use <...> in #include instead of "...".
* m68k/lynx-ng.h, sparc/lynx-ng.h: Likewise.
* c-parse.in (myparm): Handle attributes.
* objc-act.c (unused_list): New variable.
(build_tmp_function_decl): Call push_parm_decl with new format.
(start_class): Initialize unused_list.
(start_method_def): Call push_parm_decl with new format and
mark _cmp as possibly unused.
* combine.c (simplify_shift_const): Don't change SHIFT_MODE
for LSHIFTRT either.
* unroll.c (unroll_loop): Don't move reg if used in copy_end and
that is a JUMP_INSN.
Fri May 12 12:31:37 1995 Doug Evans <dje@cygnus.com>
* arm/lib1funcs.asm: New file.
Fri May 12 11:52:03 1995 Kung Hsu <kung@cygnus.com>
* configure (a29k-*-vxworks*): New target.
* config.sub (vxworks29k): New alias.
* a29k/t-vx29k: New file.
* a29k/vx29k.h: New file.
Fri May 12 11:17:28 1995 Jim Wilson <wilson@mole.gnu.ai.mit.edu>
* loop.c (check_dbra_loop): When reversing loop when
no_use_except_counting is false, there must be only one biv.
Fri May 12 07:10:00 1995 Richard Kenner (kenner@vlsi1.ultra.nyu.edu)
* unroll.c (unroll_loop): Only use local_regno for pseudos.
* genattrtab.c (write_test_expr, case MATCH_DUP): Use operands[N]
instead of JUMP_LABEL (which may not be set).
(walk_attr_value, case MATCH_DUP): Set must_extract.
* c-parse.in: Adjust number of shift/reduce conflicts.
(parm): Support attributes.
* c-decl.c (push_parm_decl): Pass any attributes to decl_attributes.
Fri May 12 00:36:26 1995 Per Bothner <bothner@kalessin.cygnus.com>
* cpplib.c (skip_quoted_string): Removed - no longer needed.
(skip_if_group): Use cpp_get_token instead of skip_quoted_string.
* cpplib.h (struct cpp_reader): Remove start_line field.
Add multiline_string_line field.
* cpplib.c (cpp_error_with_line, cpp_warning_with_line,
cpp_pedwarn_with_line): Take extra column number parameter.
(macroexpand, cpp_get_token): Fix reporting of unterminated strings.
(line_for_error): Removed - no longer needed.
Fri May 12 02:21:34 1995 Jim Wilson <wilson@cygnus.com>
* mips/svr4-t.h (MD_STARTFILE_PREFIX, MD_EXEC_PREFIX,
STARTFILE_SPEC, LINK_SPEC): Define.
* configure (mips-tandem-sysv4): Use t-mips not t-svr4.
Thu May 11 19:18:54 1995 Per Bothner <bothner@kalessin.cygnus.com>
* cpplib.c (line_for_error): Make it work; add extra parameter.
(skip_quoted_string, cpp_get_token): Update calls to line_for_error.
(macroexpand): Remember initial line so we can report it if the
call is unterminated. Also, simplify error logic slightly.
(do_include): Cast alloca return value, to avoid pcc warning.
* cppexp.c (parse_number): Cleanup some Cygnus crud for MPW.
Thu May 11 21:35:23 1995 Torbjorn Granlund <tege@cygnus.com>
From Moshier:
* i960.c (i960_output_ldconst): Let split_double handle DImode.
(i960_print_operand): Use REAL_VALUE_TO_DECIMAL for decimal strings.
(i960_output_double, i960_output_float): Likewise; also change arg
VALUE from `double' to `REAL_VALUE_TYPE'.
Thu May 11 21:09:25 1995 Per Bothner (bothner@wombat.gnu.ai.mit.edu)
* cpperror.c (cpp_print_containing_files): Remove some
Cygnus-local stuff.
Thu May 11 21:06:47 1995 Doug Evans <dje@canuck.cygnus.com>
* gcc.c (link_command_spec): Make -nostdlib no longer imply
-nostartfiles.
Thu May 11 18:48:57 1995 Paul Eggert <eggert@twinsun.com>
* c-common.c (convert_and_check): Don't diagnose overflow in constant
expression merely because conversion overflowed.
Thu May 11 18:43:59 1995 Richard Kenner (kenner@vlsi1.ultra.nyu.edu)
* c-decl.c (grokdeclarator): Use PARM_FLAG to see if should
make PARM_DECL.
* c-parse.in (nested_function, notype_nested_function):
Allow old-style arg definitions (use xdecls).
* c-decl.c (finish_struct): Properly update DECL_PACKED.
Thu May 11 15:24:15 1995 Jason Merrill <jason@phydeaux.cygnus.com>
* fold-const.c (fold): Also fold CLEANUP_POINT_EXPRs into
TRUTH_*_EXPRs and into the first operand.
(operand_equal_for_comparison_p): Also make sure the second operand
is integral.
Thu May 11 14:22:03 1995 Ted Lemon <mellon@toccata.fugue.com>
* config/mips/netbsd.h: New file.
* config/mips/t-mips-netbsd: New file.
* config/mips/x-netbsd: New file.
* configure (mips-dec-netbsd*): Add entry.
* mips.h (LOCAL_LABEL_PREFIX, USER_LABEL_PREFIX): Define.
(PUT_SDB_BLOCK_START, PUT_SDB_BLOCK_END, ASM_OUTPUT_LABEL_REF,
ASM_OUTPUT_INTERNAL_LABEL, ASM_GENERATE_INTERNAL_LABEL,
ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Use them.
* mips.c (mips_output_lineno): Use LOCAL_LABEL_PREFIX.
Thu May 11 14:22:03 1995 Stan Cox (gcc@dg-rtp.dg.com)
* dwarfout.c (output_decl): Don't output DIE for struct or union type
with no name or with ERROR_MARK for the fields.
Thu May 11 06:36:34 1995 Michael Meissner (meissner@cygnus.com)
* flow.c (mark_used_regs): If a SUBREG does not have a REG in the
SUBREG_REG position, recursively call mark_used_regs, instead of
segfaulting.
Thu May 11 06:44:34 1995 Pat Rankin (rankin@eql.caltech.edu)
* expr.c (do_jump, case EQ_EXPR, NE_EXPR): Fix typo for complex.
Wed May 10 12:34:46 1995 Michael Meissner <meissner@cygnus.com>
* configure: Add support for the little endian variant of the
PowerPC System V.4 and Eabi targets. If the GNU assembler was not
specified, don't build libgcc.a variants on the PowerPC systems
that use -mrelocatable, -mlittle, and -mbig.
* genmultilib: For MULTILIB_MATCHES arguments, map question marks
into equal signs after spliting the left and right side of
equivalent options, to all support for options like: -mcpu=403.
* rs6000/rs6000.md (rs6000_immed_double_const): New function that
is like immed_double_const, except that it reverses the two words
in the constant if the target is little endian.
* rs6000/rs6000.md (floatsidf2): Use rs6000_immed_double_const,
not immed_double_const.
(floatunssidf2): Ditto.
* rs6000/rs6000.h: Add declarations for all functions in rs6000.c.
* rs6000/sysv4.h (TARGET_SWITCHES): Add -mlittle, -mlittle-endian,
-mbig, and -mbig-endian for bi-endian support.
(ASM_SPEC): Pass -mlittle/-mbig to the assembler if it was passed
to us.
(LINK_SPEC): If explicit little or big endian support was
requested, tell the GNU linker to use the appropriate target
format.
* rs6000/t-eabi (MULTILIB_*): Build libgcc.a variants for software
floating point. Remove mrelocatable libgcc.a variant.
* rs6000/t-eabigas: New file, cloned from t-eabi. Build
mrelocatable libgcc.a variant in addition to the other variants.
* rs6000/t-ppc: New file, for PowerPC System V.4 support without
the GNU assembler.
* rs6000/t-ppcgas: New file, for PowerPC System V.4 support with
the GNU assembler.
* rs6000/eabile.h: New file, little endian eabi config file.
* rs6000/sysv4le.h: New file, little endian V.4 config file.
Wed May 10 14:22:28 1995 Doug Evans <dje@cygnus.com>
* libgcc1-test.c (main_without__main): Renamed from `main'.
* Makefile.in (libgcc1-test): Tell the user to ignore warnings.
* configure: Support --enable-foo, --disable-foo.
Wed May 10 10:34:00 1995 Lee Iverson <leei@Canada.AI.SRI.COM>
* unroll.c: Add declarations of static functions.
(unroll_loop): Renumber regs local to loop for each unrolled iteration.
Wed May 10 08:27:03 1995 Richard Kenner (kenner@vlsi1.ultra.nyu.edu)
* alpha.c (alpha_set_emit_const): Cleanups to work properly
when run on 32-bit host.
* configure: Instead of symlinking tm.h and {h,t,}config.h,
make them files that #include the proper file; pass to Makefile.
Pass out_file and md_file to Makefile instead of making symlinks.
* Makefile.in (out_file, md_file, tm_file, {build,host}_xm_file):
New symbols, to be overridden by configure.
(insn-*): Use $(md_file), not md.
(aux-output.o): Use $(out_file), not aux-output.c.
($(MD_FILE)): Rework to use new conventions.
(gen*.o, bi-*.o): Depend on $(build_xm_file), not hconfig.h.
(scan.o, fix-header.o, scan-decls.o): Likewise.
(distclean): Adjust files removed for new convention.
Tue May 9 19:26:42 1995 Jason Merrill <jason@phydeaux.cygnus.com>
* rs6000/rs6000.h (LIBGCC_SPEC): Do link with libgcc when -shared.
* Makefile.in (STAGESTUFF): Add underscore.c.
(underscore.c): Rename temporary files to begin with 'tmp-' so that
they will be removed by 'make mostlyclean'.
Tue May 9 19:19:55 1995 Mike Stump <mrs@cygnus.com>
* toplev.c (lang_options): Add new flag -ffor-scope.
Tue May 9 19:11:47 1995 Lee Iverson (leei@ai.sri.com)
* objc/init.c (objc_init_statics): Fix missing part of last change.
Tue May 9 18:25:34 1995 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
* i386/gnu.h, i386/linux.h, i386/linux-aout.h, i386/lynx.h:
Use <...> in #include instead of "..." to avoid recursion.
* i386/netbsd.h, i386/xm-gnu.h, i386/xm-linux.h: Likewise.
* i386/xm-lynx.h, i386/xm-freebsd.h, i386/xm-netbsd.h: Likewise.
* m68k/lynx.h, m68k/netbsd.h, m68k/xm-lynx.h: Likewise.
* m68k/xm-netbsd.h, mips/gnu.h, ns32k/netbsd.h: Likewise.
* ns32k/xm-netbsd.h, rs6000/lynx.h, rs6000/xm-lynx.h: Likewise.
* sparc/lynx.h, sparc/netbsd.h, sparc/xm-lynx.h: Likewise.
* sparc/xm-netbsd.h, vax/netbsd.h, vax/xm-netbsd.h: Likewise.
Tue May 9 15:52:05 1995 Michael Meissner <meissner@cygnus.com>
* config.sub: Recognize powerpcle as the little endian varient of
the PowerPC. Recgonize ppc as a PowerPC variant, and ppcle as a
powerpcle variant. Convert pentium into i586, not i486. Add p5
alias for i586. Map new x86 variants p6, k5, nexgen into i586
temporarily.
Tue May 9 15:43:27 1995 Jason Merrill <jason@phydeaux.cygnus.com>
* rs6000/rs6000.h (LINK_SPEC, LIB_SPEC): Don't mess with libg
if -shared.
* rs6000/aix41ppc.h (LINK_SPEC): Ditto.
* rs6000/powerpc.h: Don't emit .extern directives.
Tue May 9 14:08:09 1995 Jim Wilson <wilson@cygnus.com>
* sh/lib1funcs.asm (__ashrsi3, __ashlsi3, __lshrsi3): Use .byte
instead of .word offsets in switch table.
Tue May 9 11:44:47 1995 Jeremy Bettis <jbettis@cse.unl.edu>
* objc/sendmsg.c (__objc_send_initialize): Call superclass if object
does not implement +initialize.
Tue May 9 02:44:16 1995 Jason Merrill <jason@phydeaux.cygnus.com>
* rs6000/xm-rs6000.h (COLLECT_EXPORT_LIST): Define if not
cross-compiling.
* rs6000/xm-mach.h: #undef COLLECT_EXPORT_LIST.
* rs6000/rs6000.h (COLLECT_SCAN_OBJECTS): Lose.
* collect2.c (collect_exit): Unlink export_file.
(prefix_from_string): Broken out from prefix_from_env.
(prefix_from_env): Call it.
(main): Under AIX, recognize -bE: and -bexport:, and don't
automatically export everything if we see one. Otherwise, scan the
objects individually and add all their symbols to an export file to be
passed to the linker.
(write_export_file): New function.
(scan_prog_file): Ignore symbols starting with '.'
* c-common.c (declare_hidden_char_array): Mark decl artificial.
Mon May 8 18:13:57 1995 Adam Fedor <fedor@colorado.edu>
* objc/init.c (_objc_load_callback): Add declaration.
(__objc_exec_class): Call _objc_load_callback after every Class
or Category is added.
* objc/objc-api.h (_objc_load_callback): Add declaration.
Mon May 8 17:56:28 1995 Richard Kenner (kenner@vlsi1.ultra.nyu.edu)
* expr.c (expand_expr, case INDIRECT_REF): Set RTX_UNCHANGING_P
if both TREE_READONLY and TREE_STATIC set.
* c-typeck.c (convert_for_assignment): Don't give errors about
adding const or volatile unless both sides point to functions.
Mon May 8 11:48:23 1995 Michael Meissner <meissner@cygnus.com>
* configure: If ../ld/Makefile, symlink ../ld/ld.new to collect-ld,
not real-ld. Don't test for $use_collect2 any more.
Sun May 7 17:52:23 1995 Jason Merrill <jason@phydeaux.cygnus.com>
* calls.c (expand_call): Improve -Winline warnings.
Sun May 7 17:28:27 1995 DJ Delorie (dj@delorie.com)
* configure.bat: Use "go32" instead of "msdos" for future expansion.
* i386/go32.h: Add support for win32's stdcall functions.
* configure.bat: Add ^M to end of each line.
* i386/config-nt.bat, alpha/config-nt.bat: Likewise.
Sun May 7 02:12:26 1995 Jason Merrill <jason@phydeaux.cygnus.com>
* tree.h (DECL_ARTIFICIAL): New macro.
* function.c (expand_function_end): Don't warn about unused
anonymous or artificial parms.
Fri May 5 18:41:22 1995 Jim Meyering (meyering@comco.com)
* configure: Fix typo in name of "maintainer-clean".
Fri May 5 14:58:01 1995 Jeffrey A. Law <law@snake.cs.utah.edu>
* pa.c (emit_move_sequence): Force problematical constants
into memory during the reload pass when generating PIC.
Fri May 5 13:30:33 1995 Doug Evans <dje@cygnus.com>
* objc/NXConstStr.m: NXConstantString.h renamed to NXConststr.h.
Fri May 5 07:10:15 1995 Stephen L Moshier (moshier@world.std.com)
* real.c (emdnorm, toe64, etoe64): Significand of Intel long double
denormals is shifted down one bit.
Fri May 5 07:04:12 1995 Richard Kenner (kenner@vlsi1.ultra.nyu.edu)
* c-typeck.c (process_init_element): Don't clear_momentary if
constructor_stack is not empty.
* objc/Makefile (SHELL): Now /bin/sh.
* c-typeck.c (build_binary_op): Also warn about ordered
comparison of pointer with zero if -Wall.
* expr.c (do_jump, case EQ_EXPR, NE_EXPR): Properly compare complex.
Thu May 4 18:01:25 1995 Philippe De Muyter (phdm@info.ucl.ac.be)
* objc/Makefile: NXConstantString renamed to NXConstStr.
* objc/NXConstStr.m: Renamed from objc/NXConstantString.m.
* objc/NXConstStr.h: Renamed from objc/NXConstantString.h.
Thu May 4 17:38:21 1995 J.T. Conklin <jtc@netbsd.org>
* configure (vax-*-netbsd*): New configuration.
* vax/netbsd.h, vax/xm-netbsd.h: New files.
Thu May 4 16:39:05 1995 Jason Merrill <jason@phydeaux.cygnus.com>
* collect2.c (main): Add check for 'collect-ld', just like
'real-ld', except that old versions won't be looking for it in the
path. Don't look for 'real-ld' in the path anymore. Sigh.
* collect2.c: #include demangle.h and obstack.h.
(obstack_chunk_alloc): Define.
(obstack_chunk_free): Define.
(generic): Don't define. Don't use.
(main): Initialize obstacks and demangling.
* collect2.c (dump_file): Adjust space padding in output to
maintain tabulation with Solaris ld. Don't demangle if the
environment variable COLLECT_NO_DEMANGLE is set.
* collect2.c (main): Redirect the output of the first link and
demangle it. Don't collect static c/dtors unless USE_COLLECT2 is
defined. Null-terminate the list of objects.
(dump_file): New function.
(file_exists): New function.
(collect_exit): Renamed from my_exit. Dump and remove the temporary
ld output file.
(collect_execute): Break out from fork_execute. Support redirection.
(fork_execute): Call it.
(fatal_perror, fatal, error): Make non-static.
(xcalloc, xmalloc): Don't use generic.
(xrealloc): Define.
(collect_wait): Break out for do_wait. Just return the exit status.
(do_wait): Call it.
* collect2.c: Check SUNOS4_SHARED_LIBRARIES using #if, not #ifdef.
* Makefile.in (collect2): Now uses cplus-dem.o and underscore.o.
(collect2.o): Pass MAYBE_USE_COLLECT2 to compile.
(underscore.c): Rules for creation.
* cplus-dem.c, demangle.h: Copy from libiberty.
Thu May 4 14:12:35 1995 Jim Wilson <wilson@cygnus.com>
* sdbout.c (plain_type): Pass additional argument to plain_type_1.
(plain_type_1): New parameter level. Increment it when making
recursive calls. Force the type to void_type_mode before starting
a 7th level of recursion.
* sh.c (general_movsrc_operand, general_movdst_operand): Delete
references to POST_DEC and PRE_INC.
* sh.h: Clean up whitespace, comments, etc.
(TARGET_SH, RTL_BIT, DT_BIT, C_BIT, R_BIT, TARGET_DUMP_RTL,
TARGET_DUMP_R, TARGET_CDUMP): Delete.
(TARGET_SWITCHES): Delete -mR, -mc, -mr options.
(CONST_DOUBLE_OK_FOR_LETTER_P): Delete 'G' contraint.
(FUNCTION_VALUE): Simplify.
(REG_OK_FOR_PRE_POST_P, IS_INDEX): Delete.
(BASE_REGISTER_RTX_P, INDEX_REGISTER_RTX_P): Rewrite to allow
SUBREGs.
(GO_IF_LEGITIMATE_INDEX): Delete unused REGNO argument.
(GO_IF_LEGITIMATE_ADDRESS): Use BASE_REGISTER_RTX_P instead of
REG_OK_FOR_PRE_POST_P. Don't accept PRE_INC or POST_DEC addresses.
(PREDICATE_CODES, PROMOTE_MODE): Define.
Wed May 3 09:57:55 1995 Michael Meissner <meissner@cygnus.com>
* rs6000/rs6000.md (non power abs insns): If not powerpc, use
sf/subfc instructions, not subf.
Wed May 3 08:49:06 1995 Alan Modra <alan@SPRI.Levels.UniSA.Edu.Au>
* protoize.c (gen_aux_info_file): Use strerror #ifdef HAVE_STRERROR.
Wed May 3 01:06:01 1995 Jeffrey A. Law <law@mole.gnu.ai.mit.edu>
* pa.c (output_call): Fix typo/thinko in last change.
(output_function_epilogue): Align the data section before
emitting deferred plabels.
From Torbjorn:
* pa.c (before functions): Declare deferred_plabels and
n_deferred_plabels.
(output_call): When generating pic, don't use LP and RP. Use 32 bit
plabel instead.
(output_function_epilogue): Output plabels accumulated in output_call.
Tue May 2 17:15:08 1995 Jeffrey A. Law <law@mole.gnu.ai.mit.edu>
* pa.c (hppa_expand_epilogue): Fix thinko in last change.
Tue May 2 16:54:35 1995 Doug Evans <dje@cygnus.com>
* jump.c (jump_optimize, can_reach_end determination): A barrier can
follow the return insn.
Tue May 2 12:39:55 1995 Mike Stump <mrs@cygnus.com>
* fold-const.c (fold): Ensure that we don't alter the expression's
type when folding CLEANUP_POINT_EXPRs.
Tue May 2 13:36:08 1995 Michael Meissner <meissner@cygnus.com>
* expmed.c (emit_store_flag): When creating store flag
instructions from simpler parts, such as XOR, ABS, etc. do not
reuse pseudo registers if expensive optimizations, instead create new
pseudos for each insn result.
Tue May 2 01:25:29 1995 Jeffrey A. Law <law@snake.cs.utah.edu>
* pa.c (hppa_expand_epilogue): Correctly handle restore of %rp
for functions with a stack size of exactly 8kbytes and no frame
pointer.
Mon May 1 19:27:08 1995 Jim Wilson <wilson@cygnus.com>
* sdbout.c (sdbout_one_type): Don't switch to text section if
in function with section attribute.
* combine.c (combine_instrutions): Set subst_prev_insn to zero.
(try_combine, undo_all): Likewise.
(get_last_value): Return zero if subst_prev_insn set.
* sparc.h (INIT_TARGET_OPTABS): Move INIT_SUBTARGET_OPTABS to end.
* Makefile.in (install-dir): chmod a+rx all newly created directories.
* expr.c (expand_expr, case SAVE_EXPR): Handle the case where
mode is VOIDmode.
Fri Apr 28 15:39:38 1995 Per Bothner <bothner@kalessin.cygnus.com>
* cpplib.h (cpp_buffer): Note new escape combination "@ ".
* cpplib.c (macroexpand): Delete "@ " if stringifying.
(cpp_skip_hspace): Also skip "@ " if input buffer has_escapes.
(collect_expansion): Cleanup white-space handling.
(create_definition): Remove all leading spaces, not just first one.
(cpp_expand_to_buffer): Set has_escapes on resulting input buffer.
(macroexpand): Set output_escapes during whole function (and
specifically during calls of macarg).
(macroexpand): Set "@ " before and after expansion result.
(push_macro_expansion): Remove unneeded initial "@ ", not " ".
(cpp_get_token): Remove unneeded "@ " (not " ") at end of expansion.
(cpp_get_token): Handle "@ ".
* cpplib.c (read_name_map): Add cpp_reader parameter. Access
map_list from former (instead of having it be static).
(open_include_file): Extra parameter (because of above changes).
(do_include, lookup_import): Update calls of open_include_file.
* cpplib.c (do_include): Fix memory leak.
* cpplib.c (delete_assertion): Also delete tokenlist.
(do_unassert): Don't delete tokenlist (handled by delete_assertion).
(cpp_cleanup): New function. Frees resources used by a cpp_reader.
* cpphash.c (cpp_hash_cleanup): New function.
(delete_macro): Enable commented-out code.
(file_cleanup): Free actual buffer.
* cpplib.c (cpp_options): Add map_list.
* cpplib.h (PARSE_GETC): Removed. Bogus and unused.
* cppmain.c (main): Remove commented-out code that used PARSE_GETC.
* cpplib.c: Don't #include <string.h>. Causes clashes
on Nextstep (when index/rindex are macros).
(cpp_grow_buffer, int_parse_file): Cast to U_CHAR*, rather than char*.
Sun Apr 30 08:11:23 1995 Alan Modra (alan@spri.levels.unisa.edu.au)
* stdarg.h, varargs.h (va_arg): Don't assume __va_rounded_size (char)
has the value of 4.
Sun Apr 30 07:13:43 1995 Richard Kenner (kenner@vlsi1.ultra.nyu.edu)
* vax.h (NOTICE_UPDATE_CC): Correctly handle aob insns.
* expr.c (expand_expr, case CONSTRUCTOR): Don't set target to
zero if more then one word.
Pass size and alignment to move_by_pieces_ninsns in bytes, not bits.
* cse.c (cse_insn): Properly set IN_MEMORY for SET_DEST.
* tree.c (substitute_in_expr): Preserve TREE_READONLY.
* c-common.c (enum attrs): Add A_UNUSED.
(init_attributes): Initialize it.
(decl_attributes, case A_UNUSED): New case.
Sat Apr 29 15:42:03 1995 Paul Eggert <eggert@twinsun.com>
* cccp.c (do_include): Re-fix minor memory leak by using
alloca instead of xmalloc and free.
* cccp.c (macarg): Except for reporting error, treat unterminated
macro call as if it were terminated, since `macroexpand' relies
on *argptr being filled in.
Sat Apr 29 06:09:35 1995 Torbjorn Granlund <tege@cygnus.com>
* pa.c (output_mul_insn): Simplify, it is never called with
UNSIGNEDP set.
* pa.md (divsi3, udivsi3, modsi3, umodsi3): Simplify.
(ashlsi3): Clean up indentation and commentary.
Fri Apr 28 12:48:01 1995 Jason Merrill <jason@phydeaux.cygnus.com>
* integrate.c (expand_inline_function): Don't emit any notes until
after we've expanded the actual parameters.
Fri Apr 28 11:51:06 1995 Stan Cox (gcc@dg-rtp.dg.com)
* m88k/dgux.h: (ENDFILE_SPEC, LIB_SPEC) Fix crtbegin and crtend
(SELECT_RTX_SECTION) Put relocatable pic constants in data section
* m88k/dguxbcs.h: (LIB_SPEC) Likewise
* m88k/m88k.c: (symbolic_operand) Put relocatable pic constants in data
* m88k/m88k.h: (FRAME_POINTER_REQUIRED) Add -momit-leaf-frame-pointer
* m88k/m88k.md: (umulsidi3) Doesn't work for 88110 with mod/div changes
* m88k/x-dgux: (GCC_FOR_TARGET) tdesc gets mixed up for crtbegin/crtend
Fri Apr 28 06:36:47 1995 Richard Kenner (kenner@vlsi1.ultra.nyu.edu)
* c-typeck.c (pop_init_level, output_init_element): Pass
require_constant_* to digest_init.
* alpha.c (alpha_emit_set_const): Now returns rtx and take MODE arg.
Rework to use a new pseudo for intermediate values if high opt level.
Also use expand_{bin,un}op.
* alpha.h (alpha_emit_set_const): Add declaration.
* alpha.md (mov[sd]i and splits): Change call to alpha_emit_set_const.
* reg-stack.c (stack_result): Fix bug in last change.
Fri Apr 28 01:08:43 1995 Doug Evans <dje@cygnus.com>
* objc-act.c: Update calls to start_decl, finish_struct,
pass NULLs for attributes.
Thu Apr 27 21:13:14 1995 Doug Evans <dje@cygnus.com>
* sparc.md (tablejump): Only if ! TARGET_MEDANY.
(casesi): New pattern for TARGET_MEDANY case.
* c-common.c (decl_attributes): Always continue if attribute not found.
* c-typeck.c (common_type): Call lookup_attribute instead of
value_member.
* tree.c (attribute_hash_list): New function.
(build_type_attribute_variant): Call it.
(valid_machine_attribute): Handle attributes with arguments.
(is_attribute_p): New function.
(lookup_attribute): New function.
(attribute_in_list): Deleted.
(attribute_list_contained): Check TREE_PURPOSE and TREE_VALUE.
* tree.h (valid_machine_attribute): Add prototype.
(is_attribute_p, lookup_attribute): Likewise.
* i386/winnt.h (RETURN_POPS_ARGS): Call lookup_attribute.
(ENCODE_SECTION_INFO): Likewise.
(CPP_PREDEFINES): Use __stdcall__, __cdecl__.
(VALID_MACHINE_DECL_ATTRIBUTE): Call is_attribute_p.
`args' must be NULL.
Thu Apr 27 21:10:41 1995 David Edelsohn <edelsohn@mhpcc.edu>
* rs6000.md (insv): New anonymous patterns to combine insert with
arbitrary ashift, ashiftrt, lshiftrt, or zero_extract. (Based on
patch from John Brooks <jbrooks@ea.com>.)
(ashlsi3): Remove extraneous operand processing.
Thu Apr 27 18:47:24 1995 Jim Wilson <wilson@cygnus.com>
* sh/ashlsi3.c, sh/ashrsi3.c, sh/lshrsi3.c: Delete.
* sh/lib1funcs.asm (ashiftrt_r4_*): Rewrite for efficiency.
(ashrsi3, lshrsi3, lshrsi3): Add.
* t-sh (LIB1ASMFUNCS): Add new functions.
(LIBGCC2_CFLAGS): Delete.
(LIB2FUNCS_EXTRA): Remove deleted files.
(ashlsi3.c, ashrsi3.c, lshrsi3.c): Remove rules for deleted files.
* stmt.c (expand_return): When returning BLKmode structure, use
operand_subword instead of doing arithmetic on the register number.
Also, for structures smaller than word_mode, copy it into a word_mode
temporary and then subreg it.
* sparc.md: Delete two define_peepholes which print `bad peephole'.
Thu Apr 27 16:17:01 1995 Torbjorn Granlund <tege@cygnus.com>
* toplev.c (rest_of_compilation): Call shorten_branches even when
!optimize.
* final.c (shorten_branches): For non-optimizing compiles, break
after first pass.
Thu Apr 27 14:22:50 1995 Michael Meissner <meissner@cygnus.com>
* i386/linux-oldld.h: New file, that is cloned from linux-aout.h,
except that it does not pass -m i386linux to the linker. This is
to support the original Linux ld that is on most distributions.
* configure (i[345]86-*-linux*oldld*): Use i386/linux-oldld.h as
the target file.
Thu Apr 27 08:56:50 1995 Richard Kenner (kenner@vlsi1.ultra.nyu.edu)
* tree.c (valid_machine_attribute): Update last change.
Thu Apr 27 08:06:33 1995 Philippe De Muyter (phdm@info.ucl.ac.be)
* fix-header.c, cpplib.c: Don't include <sys/stat.h> twice.
* cpplib.c (cpp_grow_buffer, init_parse_file): Cast {xmalloc,xrealloc}
for token_buffer to U_CHAR* instead of char*.
* m68k/x-mot3300: New file.
* configure (m68k-motorola-sysv*): Use x-mot3300 instead of x-alloca.
Thu Apr 27 07:04:09 1995 Paul Eggert <eggert@twinsun.com>
* cccp.c (do_include): Fix minor memory leak.
* cccp.c (struct argdata): Remove unused `comments' member.
(macarg): Don't set `comments' member.
* cccp.c (collect_expansion): Assume leading white space
already removed.
Don't allocate unnecessary space for expansion.
* cccp.c (deps_output): Don't generate overly long output lines.
Do not invoke self recursively with spacer == 0; this simplifies
the code a bit.
Wed Apr 26 19:20:02 1995 Andrew McCallum <mccallum@leopard.cs.rochester.edu>
* objc/Object.h: Changed Class * to Class in order to match NEXTSTEP
and OpenStep runtime.
* objc/Object.m, objc/Object.h, objc/archive.c, objc/class.c: Likewise.
* objc/encoding.c, objc/init.c, objc/objc-api.h, objc/objc.h: Likewise.
* objc/objects.c, objc/runtime.h, objc/selector.c: Likewise.
* objc/sendmsg.c, objc/typedstream.h: Likewise.
Wed Apr 26 19:18:52 1995 Pieter Schoenmakers <tiggr@es.ele.tue.nl>
* objc/objc-api.h (objc_static_instances): New struct to record
static instances of a certain class.
(objc_module): New tag STATICS to point to the table of
objc_statics_instances.
* objc/init.c (OBJC_VERSION): Version 7.
(objc_init_statics): New function.
(__objc_exec_class): Invoke objc_init_statics if needed.
* objc/NXConstantString.m, objc/NXConstantString.h: New files.
* objc/Makefile (OBJC_O): Added bare-bones implementation of
NXConstantString.
* objc-act.c (OBJC_VERSION): Version 7.
(build_objc_string_object): Build a full declaration if not using
the next runtime.
(objc_add_static_instance): New function.
(init_module_descriptor): Add reference to static instances table.
(build_module_descriptor): Add field for static instances table.
(get_objc_string_decl): New function.
(generate_static_references): New function.
(finish_objc): Call generate_static_references if needed.
* c-tree.h (finish_decl_top_level): New declaration.
* c-decl.c (finish_decl_top_level): New function.
Wed Apr 26 18:04:32 1995 Dirk Steinberg (Dirk.Steinberg@gmd.de)
* stddef.h: Treat _MACHINE_ANSI_H_ like _ANSI_H_.
Wed Apr 26 14:09:59 1995 Jim Wilson <wilson@cygnus.com>
* sparc.h (NEGTF2_LIBCALL): Define.
(INIT_TARGET_OPTABS): Add support for all TFmode *_LIBCALL macros.
* optabs.c (init_optabs): Delete all uses of undocumented TImode and
TFmode *_LIBCALL macros.
* combine.c (simplify_rtx, case TRUNCATE): Add. Use force_to_mode.
(force_to_mode, case AND): Allow some simplifications when GET_MODE (x)
has more bits than HOST_BITS_PER_WIDE_INT.
* mips/mips.md (truncdiqi2+[456]): Add patterns to simplify ZERO_EXTEND
of a TRUNCATE.
Wed Apr 26 13:01:22 1995 Doug Evans <dje@cygnus.com>
* sparc.md (memop define_splits): Rewrite to not use memop.
Preserve MEM_IN_STRUCT_P, MEM_VOLATILE_P, RTX_UNCHANGING_P bits.
* sparc.c (memop): Deleted.
(splittable_symbolic_memory_operand): New function.
(splittable_immediate_memory_operand): New function.
Wed Apr 26 12:54:26 1995 Jeffrey A. Law <law@snake.cs.utah.edu>
* configure: Add hppa1.1-hp-lites support.
Wed Apr 26 08:04:46 1995 Richard Kenner (kenner@vlsi1.ultra.nyu.edu)
* sh.md (ashrsi2_31): Don't use dead_or_set_p after reload.
* pyr.md: Remove bad peepholes that improperly use dead_or_set_p.
* function.c (expand_function_end): Warn about unused parms
if both -Wunused and -W.
* tree.h (TYPE_PARSE_INFO): Delete unused field.
(TYPE_PACKED): Add new macro.
(struct tree_type): Delete unused field `parse_info'.
Add new field `packed_flag'.
* c-tree.h (finish_enum, finish_struct): Add ATTRIBUTES argument.
* c-common.c (init_attributes): Don't require decl for A_PACKED.
(decl_attributes, case A_PACKED): Set TYPE_PACKED for type.
* c-parse.in: Update number of shift/reduce conflicts.
(structsp): Pass attribute arg to finish_struct.
Support attributes on enums and pass to finish_enum.
* c-decl.c (finish_struct): Add ATTRIBUTES argument, call
decl_attributes and set DECL_PACKED from TYPE_PACKED.
(finish_enum): Add ATTRIBUTES argument, call decl_attributes,
and make enum narrow if TYPE_PACKED.
* print-tree.c (print_node): Print TYPE_PACKED.
* c-decl.c (init_decl_processing): Don't give builtin__constant_p an
argument type.
* expr.c (expand_builtin, case BUILT_IN_CONSTANT_P): A pointer to a
string constant is a constant.
* c-typeck.c (output_init_element): Constructor is not simple if
a bitfield is being assigned a non-integer.
* c-typeck.c (push_init_level): Update constructor_depth when we
push spelling level.
Tue Apr 25 19:50:06 1995 Jeffrey A. Law <law@snake.cs.utah.edu>
* pa.c (emit_move_sequence): Handle function label arithmetic for
PIC code generation too.
Tue Apr 25 18:52:43 1995 Stephen R. van den Berg (berg@pool.informatik.rwth-aachen.de)
* reg-stack.c (current_function_returns_real): Deleted (unused).
(FP_mode_reg): Trimmed to a smaller size, less overhead.
(FP_MODE_REG): New macro over which FP_mode_reg will be accessed.
(mark_regs_pat, straighten_stack): New functions.
(reg_to_stack): Amend initialisation of FP_mode_reg.
Mark FP registers mentioned in USE insns before NOTE_INSN_FUNCTION_BEG.
(get_true_reg): Eliminate FP subreg accesses in favour of the
actual FP register in use.
(record_reg_life_pat): Make it work on SUBREGs as well. Make use of
the new mark_regs_pat function. Handle USE insns if called unnested.
(record_reg_life): Don't check for QImode again, we know that it
is there. Process CALL_INSNs like all other insns, they might `use'
some FP argument registers if register passing.
(stack_result_p): Changed in stack_result and returning an rtx.
(stack_reg_life_analysis): Take a new stackentry state argument.
Use stack_result and the rtx to mark using mark_regs_pat. This ensures
that types that need multiple FP registers are handled correctly.
Delete the no_live_regs shortcut to save space.
Use stackentry state to determine filled registers.
(replace_reg): Accept COMPLEX_FLOAT as well.
(move_for_stack_reg): Optimise away some pointer dereferencing.
(subst_stack_regs): Make sure the stack is in the right order
and of the right size for register passing.
(goto_block_pat): Make sure the stack is in the right order
to return possible multi-register values from the function.
(convert_regs): Fix comment about CALL_INSN, it's no longer valid.
Make sure the stack is of the right size and in the right order
to return possible multi-register values from the function.
* function.c (assign_parms): If STACK_REGS is defined, generate USE
insns before the function body, thus showing which registers are filled
with parameters.
* expr.c (expand_builtin_apply_args): Likewise.
Reverse order of saving registers, more compact code for i387.
(expand_builtin_apply): Likewise.
* emit-rtl.c (gen_highpart): Add comment about broken implementation.
* i386.md (untyped_call): Make it return a complex double.
* c-parse.in (attrib): Permit null-length argument list to attributes.
* tree.c (valid_machine_attribute): Use new function attribute_in_list,
makes sure type_attribute_variants are reused even when attributes have
parameters.
Assign any new type to TREE_TYPE (decl).
(attribute_in_list): New function.
(attribute_list_contained): Use it.
* tree.h (attribute_in_list): New declaration.
Tue Apr 25 18:25:53 1995 Jim Wilson <wilson@cygnus.com>
* expr.c (struct move_by_pieces): Add to_struct and from_struct fields.
(move_by_pieces): Set to_struct and from_struct fields.
(move_by_pieces_1): Set MEM_IN_STRUCT_P of to1 and from1.
(expand_builtin, case BUILT_IN_MEMCPY): New variable type.
Set MEM_IN_STRUCT_P of src_mem and dest_mem.
* Makefile.in (clean): Delete libgcc1-asm.a.
* m68k/vxm68k.h (CPP_SPEC): Define.
* c-decl.c (pushdecl): Don't test DECL_EXTERNAL when deciding whether
to register a duplicate decl in the current block.
* cross64.h (INIT_ENVIRONMENT): Define as string not putenv call.
* gcc.c (main): Pass INIT_ENVIRONMENT to putenv.
* stmt.c (expand_return): When returning BLKmode structure in
registers, copy it to a psuedo-reg instead of to hard registers.
Tue Apr 25 15:14:58 1995 Michael Meissner <meissner@cygnus.com>
* rs6000.h (LEGITIMIZE_ADDRESS): Don't create a DF address using two
regs if -msoft-float or -mcpu=403.
Tue Apr 25 15:45:44 1995 Richard Henderson (richard@atheist.tamu.edu)
* m68k.md (divhi3, udivhi3, modhi3, umodhi3): Deleted
these insns plus some surrounding trash.
(divmodhi4, udivmodhi4): Added these insns.
Tue Apr 25 10:12:40 1995 Richard Kenner (kenner@vlsi1.ultra.nyu.edu)
* alpha.c (alpha_builtin_saveregs): Refine last change to work
for both stdarg and varargs.
* tree.c (chain_member_purpose): Make similar to chain_member_value.
* Makefile.in, configure: Change "realclean" to "maintainer-clean".
* protoize.c: Removed __NetBSD__ from conditional.
Declare strerror if HAVE_STRERROR is defined; otherwise
declare sys_errlist and sys_nerr.
(my_strerror): New function.
(errno): Don't define if already defined as a macro.
* alpha.c (current_file_function_operand): Return false if profiling.
* expr.c (convert_move): Don't access a hard reg in an invalid
mode when doing a truncation.
* alpha.c (add_operand): Test for exactly the constants allowed by
the constraints.
* alpha.h (CONST_OK_FOR_LETTER_P, case 'L'): Reject 0x80000000.
* c-parse.in (initdcl, notype_initdcl): Pass attributes to
start_decl; delete call to decl_attributes.
* c-tree.h (start_decl): Two new tree parameters.
* c-decl.c (start_decl): New args for attributes; call decl_attributes.
* c-decl.c (duplicate_decls): Don't look at TYPE_ACTUAL_ARG_TYPES
if it is not set.
* xm-1750a.h: New file.
* alpha.c (alpha_builtin_saveregs): Add to incoming args addr
if less than 6 named args, not less than or equal to.
Mon Apr 24 15:25:19 1995 Richard Kenner (kenner@vlsi1.ultra.nyu.edu)
* mips-tfile.c (fatal, error): Make first arg const to avoid warning.
* stmt.c (expand_end_bindings): Write a BARRIER after call
to abort in nonlocal handler.
* stmt.c (expand_decl_init): Call preserve_temp_slots to keep
around any temp whose address was taken.
Fri Apr 21 16:26:15 1995 Torbjorn Granlund <tege@adder.cygnus.com>
* pa.md (call_internal_reg): Fix typos in length calculation.
(call_value_internal_reg): Likewise.
Fri Apr 21 13:17:15 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
* config/gnu.h (STANDARD_INCLUDE_DIR): New macro.
* config/mips/gnu.h (STANDARD_INCLUDE_DIR): Macro moved there.
Fri Apr 21 08:23:58 1995 Tom Quiggle (quiggle@lovelace.engr.sgi.com)
* toplev.c (lang_options): Add -I for GNAT.
* gcc.c (default_compilers): Pass -I to gnat1.
Fri Apr 21 07:58:06 1995 Richard Kenner (kenner@vlsi1.ultra.nyu.edu)
* tree.c (integer_all_onesp): Test to size of mode, not TYPE_PRECISION.
* toplev.c (main): Turn on -fforce-mem for -O2.
* fold-const.c ([lr]rotate_double): Replace; old versions were bogus.
(fold, shift and rotate): Don't call tree_int_cst_sgn on non-integer.
(fold, case LROTATE_EXPR): If constant count, convert to RROTATE_EXPR.
(fold, case RROTATE_EXPR): Sometimes commute logical op with rotate.
Delete pair of counteracting shifts.
* combine.c (simplify_logical, case AND): If still an AND, get
new values for op0 and op1.
Thu Apr 20 17:52:10 1995 Jim Wilson <wilson@chestnut.cygnus.com>
* sh.c: Completely rewritten.
* sh.h (FAST_BIT, CONSTLEN_2_BIT, CONSTLEN_3_BIT, CONSTLEN_0_BIT,
TARGET_FASTCODE, TARGET_CLEN3, TARGET_CLEN0, TARGET_OPTIONS): Delete.
(TARGET_SWITCHES): Delete -mclen3 and -mclen0 options.
(TARGET_DEFAULT): Is zero.
(OVERRIDE_OPTIONS): Delete code to set max_count_si and max_count_hi.
(SPECIAL_REG): New macro.
(HARD_REGNO_MODE_OK): Allow any mode in any general register.
(GO_IF_LEGITIMATE_ADDRESS): Delete constant + reg address case.
(MOVE_RATIO): Define to 2 when TARGET_SMALLCODE.
(max_si, max_hi, max_count_si, max_count_hi): Delete.
* sh.md: Delete spurious constraints from all define_expands.
(rotlsi3_1): Set T reg instead of clobbering it.
(ashrsi3): Use expand_ashiftrt instead of gen_shifty_op.
(movsi_i, movhi_i, movsf_i): Add conditions to reject patterns
needing a reload.
(movdi-2, movdf_k): Correct conditions to reject patterns needing
a reload.
([inverse_]branch_{true,false}): Pass operands to output_branch.
(jump): Delete unnecessary braces.
(call, call_value): Don't use expand_acall. Force operand0 into
a register.
Thu Apr 20 12:57:16 1995 Jason Merrill <jason@phydeaux.cygnus.com>
* function.c (assign_parms): Use TREE_ADDRESSABLE rather than
TYPE_NEEDS_CONSTRUCTING to decide whether a parameter needs to be
passed by invisible reference.
* calls.c (expand_call): Ditto. Abort if we try to pre-evaluate a
parameter of TREE_ADDRESSABLE type.
Wed Apr 19 17:50:24 1995 Torbjorn Granlund <tege@cygnus.com>
* pa.h (TARGET_SWITCHES): Fix typo.
Tue Apr 18 18:06:03 1995 Per Bothner <bothner@kalessin.cygnus.com>
* expr.c (store_constructor): Use BYTES_BIG_ENDIAN rather
than BITS_BIG_ENDIAN to layout bits within bitstring.
* tree.c (get_set_constructor_bytes): Likewise.
Tue Apr 18 17:22:46 1995 Per Bothner (bothner@wombat.gnu.ai.mit.edu)
* config/m68k/{x-hp320,x-hp320g} (FIXPROTO_DEFINES):
Define _HPUX_SOURCE so putenv and other functions get seen.
Tue Apr 18 03:57:35 1995 Michael Meissner (meissner@cygnus.com)
* varasm.c (weak_decls): Make this a unique structure, instead of
a tree structure.
(handle_pragma_weak): Don't redeclare asm_out_file. Use new weak
structure to copy name and value to. Protect name and value by
copying them to the permanent obstack.
(declare_weak): Call handle_pragma_weak, instead of duplicating
the code.
(finish_weak): Rewrite to use new weak symbols list structure.
* c-pragma.h: New file to define the c-pragma.c interfaces.
* c-pragma.c: Include it.
* varasm.c: Include it.
* c-lex.c: Include it.
* cp/lex.c: Include it.
* varasm.c (handle_pragma_weak): No longer pass output file
stream, since weak pragmas are delayed until the end of the
compilation.
* c-pragma.c (handle_pragma_token): Call handle_pragma_weak
without file stream argument.
* Makefile.in (varasm.o, c-lex.o, c-pragma.o): Add dependencies on
c-pragma.h.
* config/rs6000.md (movdf): If -msoft-float, do not generate
memory to memory references, like is already done for the
-mhard-float case. Remove an extra test for -mhard-float inside
of -mhard-float code.
Tue Apr 18 06:19:50 1995 Richard Kenner (kenner@vlsi1.ultra.nyu.edu)
* fold-const.c (size_int): Arg is unsigned HOST_WIDE_INT.
* tree.h (size_int): Likewise.
Mon Apr 17 23:36:57 1995 Jason Merrill <jason@phydeaux.cygnus.com>
* rs6000/aix41.h: Restore March 11th changes, plus
(ASM_OUTPUT_EXTERNAL): Do add [DS] or [RW], just don't emit
anything.
* rs6000/aix3newas.h (ASM_OUTPUT_EXTERNAL): Ditto.
Mon Apr 17 15:58:52 1995 Per Bothner <bothner@kalessin.cygnus.com>
* config/mips/x-iris (FIXPROTO_DEFINES): Add -D_LANGUAGE_C_PLUS_PLUS.
* config/mips/x-iris6: Likewise.
* cpplib.c: Rename make_definition to cpp_define.
* cpplib.h (cpp_define): New declaration.
* cpplib.c (special_symbol): For T_SPECLINE, calculate __LINE__
in enclosing file buffer, not current buffer (if macro expanding).
(cpp_get_token): Fix thinko (in code for chopping unneeded space).
Mon Apr 17 11:36:07 1995 Jim Wilson <wilson@cygnus.com>
* abi64.h (CPP_SPECS): Define and use _ABI64 instead of
_MIPS_SIM_ABI64.
(SETUP_INCOMING_VARARGS): Set MEM_IN_STRUCT_P if big endian target.
* iris6.h (ASM_IDENTIFY_GCC, ASM_IDENTIFY_LANGUAGE): Define.
* combine.c (get_last_value): Ignore BARRIER when scanning backwards.
(move_deaths): New variables before_dead and after_dead. Set them
to instructions that have valid INSN_CUID values and use in test.
* combine.c (subst_prev_insn): New variable.
(try_combine): Set it.
(get_last_value): Use it.
* reload.c (find_reloads): Recompute reg_equiv_address from
reg_equiv_memory_loc before using it.
(find_reloads_toplev, make_memloc): Likewise.
* expr.c (expand_builtin, case BUILT_IN_MEMCPY): Call force_operand
on dest_rtx before returning it.
* function.c (instantiate_decls): Use temporary allocation if
DECL_DEFER_OUTPUT is set.
Sat Apr 15 23:19:03 1995 Jason Merrill <jason@phydeaux.cygnus.com>
* aoutos.h (ASM_OUTPUT_DEF): Define instead of SET_ASM_OP.
* sparc/sunos4.h (ASM_OUTPUT_DEF): Ditto.
* varasm.c (weak_finish): Don't handle aliases.
(declare_weak): Ditto.
(assemble_alias): Handle aliases.
* c-common.c (enum attrs): Add A_ALIAS.
(init_attributes): Ditto.
(decl_attributes): Ditto.
Sat Apr 15 13:26:34 1995 Richard Kenner (kenner@vlsi1.ultra.nyu.edu)
* calls.c (expand_call): Call preserve_temp_slots on temps
made for BLKmode args returned in registers.
* pa.c (override_options): Fix typo.
Sat Apr 15 12:11:46 1995 Brendan Kehoe <brendan@cygnus.com>
* alpha/alpha.c (output_epilog): Initialize fp_offset to 0, and
make sure it's non-zero before we try to use it to restore the
frame pointer.
Fri Apr 14 19:45:05 1995 Jason Merrill <jason@phydeaux.cygnus.com>
* ginclude/va-{clipper,pa,pyr,sparc,spur}.h (va_arg): Reorganize
to avoid BIND_EXPRs and COND_EXPRs of aggregate type.
Fri Apr 14 19:31:14 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
* config/svr4.h (ASM_OUTPUT_SECTION_NAME): Make the section
read-only executable "ax" if DECL is a FUNCTION_DECL; read-only
"a" (previously the case always) if DECL is TREE_READONLY;
otherwise writable "aw".
Fri Apr 14 18:49:11 1995 Linus Torvalds <Linus.Torvalds@cs.Helsinki.FI>
* alpha.md (probe_stack): Probe with write, not read.
(allocate_stack): Update and correct stack probe code.
* alpha.c (output_prolog): Changed stack probe at function entry.
Fri Apr 14 18:42:34 1995 Richard Kenner (kenner@vlsi1.ultra.nyu.edu)
* jump.c (delete_insn): When deleting after label, delete
a BARRIER as well.
Fri Apr 14 14:40:48 1995 Jason Merrill <jason@phydeaux.cygnus.com>
* toplev.c (compile_file): Call weak_finish.
* c-common.c (enum attrs): Add A_WEAK.
(init_attributes): Ditto.
(decl_attributes): Support __attribute__ ((weak)) by
calling declare_weak.
* sparc/sunos4.h (HANDLE_PRAGMA_WEAK, WEAK_ASM_OP, SET_ASM_OP):
Define to support weak symbols with -fgnu-linker.
* aoutos.h: Ditto.
* varasm.c (handle_pragma_weak): Add declared weak symbols to
weak_decls rather than emitting them immediately.
(declare_weak): Add the indicated declaration to weak_decls.
(weak_finish): Emit .weak directives for any weak symbols.
* libgcc2.c: The C++ free-store management functions are weak.
Fri Apr 14 13:00:29 1995 Michael Meissner (meissner@cygnus.com)
* rs6000/rs6000.c (output_prolog): For eabi systems, emit main's
call to __eabi before setting up the minimal TOC used with the
-mrelocatable support.
* rs6000/eabi.h (INVOKE__main): Don't define any more,
output_prolog will emit the call.
Fri Apr 14 09:09:03 1995 Richard Kenner (kenner@vlsi1.ultra.nyu.edu)
* alpha.c (call_operand): Any reg is valid for NT.
(output_prologue): Never need GP for Windows/NT.
Set SYMBOL_REF_FLAG in current function decl.
Thu Apr 13 20:19:30 1995 Jason Merrill <jason@phydeaux.cygnus.com>
* alpha/xm-alpha.h (HAVE_VPRINTF): Define.
(HAVE_PUTENV): Define.
(POSIX): Define.
Thu Apr 13 19:57:44 1995 Doug Evans <dje@cygnus.com>
* emit-rtl.c (gen_sequence): If the insn has a non-null
CALL_INSN_FUNCTION_USAGE field, output it as a sequence so the
latter isn't discarded.
* c-parse.in: Update expected conflict count.
Thu Apr 13 08:10:20 1995 Richard Kenner (kenner@vlsi1.ultra.nyu.edu)
* configure.bat: Arg 2 is which machine (i386 or alpha).
* configure (alpha-*-winnt3*): New configuration.
* alpha.c: Don't #include stamp.h for WINNT.
(input_operand, case CONST): Allow ptr_mode and DImode.
* alpha.h (WINDOWS_NT): Provide default definition.
(ASM_OUTPUT_INT): Use output_addr_const.
(ASM_OUTPUT_ADDR_DIFF_ELT): Use .long for NT.
* alpha.md (calll, tablejump, movsi): New variants for NT.
* alpha/winnt.h, alpha/xm-winnt.h, alpha/x-winnt: New files.
* alpha/config-nt.bat, alpha/config-nt.sed: New files.
* i386/config-nt.bat: Add Ada fragments to Makefile.
* i386/config-nt.sed: Adjust for deletion of config.run in Makefile.in
Change version to 2.6.3.
Add some missing tabs.
* winnt/winnt.h (TARGET_MEM_FUNCTIONS): Define.
(LINK_SPEC): Delete "align:0x1000".
* winnt/xm-winnt.h (OBJECT_SUFFIX): Define.
* ginclude/stdarg.h, ginclude/varargs.h: Clean up code that
defines *DEFINED* symbols.
* configure (a29k-*-sym1*): Same as a29k-*-bsd*.
* a29k.h (ASM_OUTPUT_SECTION_NAME): New macro.
Wed Apr 12 14:36:03 1995 Jim Wilson <wilson@cygnus.com>
* dbxout.c (dbxout_type_fields): Correct arguments to CHARS macro
in flag_minimal_debug case.
(dbxout_symbol_name): Use DECL_ASSEMBLER_NAME unconditionally.
* sdbout.c (sdbout_record_type_name): Correct indentation.
(sdbout_symbol): Use DECL_ASSEMBLER_NAME unconditionally.
(sdbout_one_type): Likewise.
Tue Apr 11 13:24:13 1995 Per Bothner <bothner@kalessin.cygnus.com>
* fix-header.c (main): Fix loop over required_functions_list.
(fatal): Also print inc_filename.
* cpplib.c (cpp_push_buffer): Added missing initializatuon of buf.
(cpp_file_buffer): Compare against CPP_NULL_BUFFER, not NULL.
(finclude): No longer call cpp_push_buffer - let callers do it.
(do_include): Add call to cpp_push_buffer.
(push_parse_file): Call cpp_push_buffer early, so initial
defines can use file and line from a valid cpp_buffer.
(nreverse_pending): New function.
(push_parse_file): Use nreverse_pending.
(push_parse_file): For -include files, just push them in reverse
order - we don't need to scan them now.
(cpp_error_from_errno, cpp_perror_with_name): Don't emit extra '\n'.
Tue Apr 11 13:36:44 1995 Jim Wilson <wilson@cygnus.com>
* configure (mips-dec-mach3): Add.
* sh.c (shiftby_operand): Delete.
* sh.h (TARGET_SWITCHES): -m3 and -m3l also set SH2_BIT.
(OVERRIDE_OPTIONS): Don't add CPU_SH2 to CPU_SH3 when TARGET_SH3.
* sh.md (ashlsi3): Use nonmemory_operand as a predicate instead of
shiftby_operand. Don't use shiftby_operand in the output statement.
(lshrsi3): Likewise.
* c-decl.c (poplevel): Do output inline function if
DECL_ABSTRACT_ORIGIN points to itself.
* varasm.c (output_constant): Cast assemble_string argument to char *.
Mon Apr 10 14:29:28 1995 Torbjorn Granlund <tege@adder.cygnus.com>
* recog.c (constrain_operands, case 'E'): Make this work like
constraint character `F' when REAL_ARITHMETIC is defined.
* regclass.c (record_reg_classes, case 'E'): Likewise.
* reload.c (find_reloads, case 'E'): Likewise.
Mon Apr 10 14:30:31 1995 Michael Meissner <meissner@cygnus.com>
* rs6000/aix3newas.h, rs6000/aix41.h: Eliminate March 11th changes
to undefine ASM_OUTPUT_EXTERNAL{,_LIBCALL}, since this causes the
compiler not to bootstrap.
Mon Apr 10 07:17:39 1995 Richard Kenner (kenner@vlsi1.ultra.nyu.edu)
* cppalloc.c: #include config.h.
* cppexp.c: Add declarations of xmalloc and xrealloc.
(cpp_parse_expr): Cast args to bcopy to char *.
* cpphash.c: Add declaration of xmalloc.
* cpplib.c (init_parse_options, cpp_reader): Cast args to bcopy,
bcmp, and bzero to char *.
(add_import, push_parse_file, init_parse_file): Likewise.
* c-common.c (enum attrs): New attribute, A_NOCOMMON.
(init_attribute): Initialize it.
(decl_attributes): Implement it.
* varasm.c (make_decl_rtl): Allow section attribute if -fno-common
or variable is not to be placed in common for some other reason.
* combine.c (simplify_set): Don't move a SUBREG to dest if it
is changing the size of a hard reg in CLASS_CANNOT_CHANGE_SIZE.
* reload.c (find_equiv_reg): If goal is a pseudo that got memory,
a store into memory makes it invalid.
* reload1.c (reload_as_needed): Call forget_old_reloads_1 on
pattern before reg elimination.
Mon Apr 10 00:26:14 1995 Jeffrey A. Law <law@snake.cs.utah.edu>
* pa.c (pa_reorg): Bump label use count for each entry in an
exploded ADDR_VEC.
Sun Apr 9 09:22:51 1995 Richard Kenner (kenner@vlsi1.ultra.nyu.edu)
* i386.md (adddi3, subdi3): Need scratch reg whenever operand 0 in
mem and operands 1 not '0'.
(subdi3): Don't treat two non-equal MEMs as non-aliasing.
Sat Apr 8 22:53:38 1995 Jeffrey A. Law <law@snake.cs.utah.edu>
* pa.c (pa_reorg): Fix typo.
Sat Apr 8 19:36:36 1995 Michael Meissner <meissner@cygnus.com>
* rs6000/rs6000.h (SELECT_SECTION): TREE_CODE_CLASS must be called
with a tree code, not a tree value.
Sat Apr 8 12:41:01 1995 Mike Stump <mrs@cygnus.com>
* cpphash.c: Don't use const on compilers that don't support it.
Sat Apr 8 16:32:22 1995 Richard Kenner (kenner@vlsi1.ultra.nyu.edu)
* expr.c (expand_increment): Handle case where INCREMENTED
has a non-trivial conversion.
Fri Apr 7 19:33:21 1995 Phil Nelson (phil@cs.wwu.edu)
* ns32k.h (TRAMPOLINE_TEMPLATE, TRANSFER_FROM_TRAMPOLINE):
Fix assembler syntax errors.
Fri Apr 7 19:27:23 1995 Pat Rankin (rankin@eql.caltech.edu)
* cccp.c (VMS_fstat, VMS_stat): New functions.
Fri Apr 7 19:25:21 1995 Paul Eggert <eggert@twinsun.com>
* cccp.c (collect_expansion): If traditional, set stringify
member to SHARP_TOKEN regardless of the value of
stringify_sharp_token_type.
Fri Apr 7 07:48:35 1995 Richard Kenner (kenner@vlsi1.ultra.nyu.edu)
* cse.c (simplify_unary_operation): #ifdef POINTERS_EXTEND_UNSIGNED,
handle sign- or zero-extending addresses.
* optabs.c (init{,_integral,_floating,_complex}_libfuncs):
Change SUFFIX to "char" to avoid confusion with prototype.
* explow.c (convert_memory_address): No longer static.
New arg, TO_MODE.
Do something special for SYMBOL_REF, LABEL_REF, and CONST.
(memory_address): Add extra arg to call to convert_memory_address.
* rtl.h (convert_memory_address): Add extra arg.
* expr.c (expand_expr, case ADDR_EXPR): Always call
convert_memory_address when converting; add extra arg.
* stmt.c (expand_computed_goto): Convert from ptr_mode to Pmode.
* gcc.c (OBJECT_SUFFIX): Default now ".o", not "o".
(all specs): Remove "." before %O; use %O in a few missing cases.
* i386/os2.h (OBJECT_SUFFIX): Delete from here.
* i386/xm-os2.h (OBJECT_SUFFIX): Move to here; now has period.
* Makefile.in (STAGESTUFF): Use $(exeext) for executables.
Fri Apr 7 03:32:29 1995 Richard Stallman <rms@mole.gnu.ai.mit.edu>
* config.sub: Accept -lites* as op sys.
Thu Apr 6 23:08:50 1995 Per Bothner <bothner@kalessin.cygnus.com>
* cpplib.c (bcopy, bzero, bcmp): Remove #undefs.
* cppalloc.c (xcalloc): Re-implement using calloc,
rather than malloc+bzero.
* cpplib.c (SELF_DIR_DUMMY): New macro.
(do_include): Don't pass searchptr to finclude if it is dsp,
since that is on the stack, and would cause a dangling pointer.
If handling #include_next, recognize SELF_DIR_DUMMY.
Fri Apr 7 00:54:24 1995 Jeffrey A. Law <law@snake.cs.utah.edu>
* pa.h (MACHINE_DEPENDENT_REORG): Define.
* pa.md (switch_jump): New pattern for jumps which implement
a switch table.
* pa.c (pa_reorg): New function to explode jump tables.
(pa_adjust_insn_length): Account for jumps in switch tables with
unfilled delay slots.
Thu Apr 6 14:31:10 1995 Jason Merrill <jason@phydeaux.cygnus.com>
* c-typeck.c (build_binary_op): Don't call common_type for
uncommon pointer types.
Wed Apr 5 13:53:17 1995 Per Bothner <bothner@kalessin.cygnus.com>
Re-write fixproto/fix-header/etc to use cpplib:
* fix-header.c: Comment out support for adding missing extern "C"
using #ifdef ADD_MISSING_EXTERN_C instead of #if 0.
* fixproto: Removed case of required functions. Instead use ...
* fix-header.c (std_include_table): ... new required-functions table.
(cpp_file_line_for_message, cpp_print_containing_files, cpp_message):
New stub functions, to intercept cpplib error message.
* fixproto: Don't call $CPP, since fix-header now incorporates cpplib.
* gen-protos.c (fatal, hashf): New functions.
(main): Use hashf, instead of hash.
* scan-decls.c (scan_decls, skip_to_closing_brace): Re-write to
take a cpp_reader* as argument, not a FILE*.
* scan.h (hash): Make parameter const.
* scan.c (hash): Removed.
* scan.c (memory_full, xmalloc, xrealloc): Removed.
Use functions from cppalloc.c instead.
* Makefile.in (gen-prtos, fix-header, stmp-fixproto): Update.
Wed Apr 5 13:24:14 1995 Per Bothner <bothner@kalessin.cygnus.com>
* cpplib.c (cpp_get_token): If traditional, return after comment,
instead of reading more, so end-of-line can be peeked at.
* cpperror.c (cpp_file_line_for_message, cpp_message): New
functions, that do the actual printing of error messages.
(cpp_print_file_and_line, cpp_error, cpp_warning, cpp_pedwarn,
cpp_error_with_line, cpp_warning_with_line, cpp_pedwarn_with_line,
cpp_pedwarn_with_file_and_line, cpp_error_from_errno, my_strerror,
cpp_perror_with_name): Re-write to use cpp_file_line_for_message
and cpp_message, and move to cpplib.c.
Tue Apr 4 23:35:49 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
* config/gnu.h (GNU_CPP_PREDEFINES): Remove -D__HURD__.
Tue Apr 4 17:15:54 1995 Jeffrey A. Law <law@mole.gnu.ai.mit.edu>
* pa.h (DO_GLOBAL_DTORS_BODY): Fix pointer -> integer assignment
problem.
* reorg.c (fill_simple_delay_slots): Don't use a JUMP_INSN
a the target of another JUMP_INSN to fill a delay slot.
Mon Apr 3 19:03:48 1995 Torbjorn Granlund <tege@adder.cygnus.com>
* cse.c (simplify_unary_operation): Sign-extend constants when
they have the most significant bit set for the target.
* m68k.md (umulsi3_highpart): Test for CONST_INT and CONST_DOUBLE,
not CONSTANT_P.
(smulsi3_highpart): Likewise.
* m68k.c (const_uint32_operand): New function.
(const_sint32_operand): New function.
* m68k.md (const_umulsi3_highpart): Use const_uint32_operand instead
of immediate_operand for op3. Delete mode.
(const_smulsi3_highpart): Analogous change.
Mon Apr 3 19:03:48 1995 Jim Wilson <wilson@cygnus.com>
* cse.c (simplify_binary_operation): Sign-extend constants when
they have the most significant bit set for the target.
* combine.c (force_to_mode, case PLUS): Sign extend masks that are
negative in OP_MODE.
(simplify_and_const_int): Sign-extend constants when they have the
most significant bit set for the target.
(merge_outer_ops): Likewise.
(simplify_shift_const): Likewise.
Mon Apr 3 18:23:48 1995 Jason Merrill <jason@phydeaux.cygnus.com>
* toplev.c (lang_options): Add -f{no-,}repo.
Mon Apr 3 18:13:15 1995 Richard Kenner (kenner@vlsi1.ultra.nyu.edu)
* combine.c (nonzero_bits, case REG): Check POINTERS_EXTEND_UNSIGNED.
(num_sign_bit_copies, case REG): Likewise.
* explow.c (convert_memory_address): New function.
(memory_address): Call if it needed.
(promote_mode, case POINTER_TYPE): Use Pmode and pointer extension.
(allocate_dynamic_stack_space): Convert size from ptr_mode.
* expr.c (clear_storage, expand_assignment, store_{expr,constructor}):
Use ptr_mode instead of Pmode in some places.
(expand_expr, expand_builtin): Likewise.
(push_block, store_expr): Convert size to Pmode.
(expand_expr, case ADDR_EXPR): Convert from Pmode to ptr_mode.
Mon Apr 3 18:00:52 1995 Jim Wilson <wilson@cygnus.com>
* explow.c (allocate_dynamic_stack_space): Correct typo in last
change.
* sh.c (gen_shifty_op, case ASHIFTRT): Return 0 if shift count is not
a constant.
Mon Apr 3 12:17:10 1995 Michael Meissner (meissner@cygnus.com)
* expmed.c (extract_bit_field): When converting a SUBREG into a
REG, if the system is big endian, adjust the bit offset
appropriately.
Mon Apr 3 00:08:45 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
* config/i386/linux.h: Include "config/linux.h" instead of
"linux.h", to avoid recursion.
Sun Apr 2 23:50:27 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
* config/i386/gnuelf.h: Include i386/linux.h instead of
i386/linuxelf.h.
Sun Apr 2 17:35:10 1995 Jim Wilson <wilson@cygnus.com>
* cse.c (simplify_relational_operation): Don't simplify A-B for
compare of A and B when the compare is unsigned.
Sun Apr 2 08:23:38 1995 Paul Eggert <eggert@twinsun.com>
* fixincludes (stdio.h): BSDI 2.0 changed the spelling of _VA_LIST_
to _BSD_VA_LIST_.
Sun Apr 2 07:57:28 1995 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
* i386/xm-bsd386.h: New file.
* configure (i[345]86-*-bsd*): Add xm_file.
* gcc.c (default_compilers): Pass -W and -w to gnat1.
* winnt/winnt.h (STDC_VALUE): Add #undef.
* i386/winnt.h (LIB_SPEC): Likewise.
Sun Apr 2 07:55:25 1995 Douglas Rupp (drupp@cs.washington.edu)
* i386/winnt.h (RETURN_POPS_ARGS, ENCODE_SECTION_INFO): Call
chain_member_purpose, not chain_member_value.
(ASM_FILE_START, LIB_SPEC): Move to here.
* winnt/winnt.h (ASM_FILE_START, LIB_SPEC): Delete from here.
* tree.c (chain_member_purpose): New function.
Sat Apr 1 12:19:14 1995 Jason Merrill <jason@phydeaux.cygnus.com>
* c-typeck.c (build_binary_op): New variable build_type controls
type given to expression when created. Set to integer_type_node for
comparison ops instead of result_type so result_type still holds type
in which comparison is done. When checking for comparison between
signed and unsigned, use result_type rather than (possibly shortened)
type of op0. Don't warn about equality comparison of signed operand
to unsigned constant that fits in signed type.
Sat Apr 1 09:47:02 1995 Douglas Rupp (drupp@cs.washington.edu)
* i386/winnt.h (CPP_PREDEFINES): Add definitions for __stdcall
and __cdecl.
* winnt/winnt.h (LIB_SPEC): Add OLDNAMES.LIB.
* winnt/xm-winnt.h: Remove unneeded #define's for non-ANSI functions.
* fixinc.winnt: Remove unneeded fixes relating to __stdcall.
* objc/Makefile (SHELL): New definition.
Sat Apr 1 08:25:26 1995 Richard Kenner (kenner@vlsi1.ultra.nyu.edu)
* cse.c (cse_insn): When emitting a BARRIER, don't put it after
a deleted insn.
* reload.c (push_reload): Initialize secondary_{in,out}_icode.
* gcc.c (print_multilib_info): Don't use LAST_PATH if not set.
Sat Apr 1 08:15:59 1995 Pat Rankin (rankin@eql.caltech.edu)
* vax.md (extv, extzv): Don't use immediate value for operand 1.
Sat Apr 1 07:48:29 1995 Yury Shevchuk (sizif@botik.yaroslavl.su)
* stmt.c (expand_asm_operands): Properly ignore invalid reg in clobber.
Sat Apr 1 07:02:24 1995 Paul Eggert <eggert@twinsun.com>
* cccp.c: General code cleanup.
Add prototypes for static functions.
Remove unnecessary casts to (char *); add casts to (U_CHAR *).
Add parentheses suggested by `gcc -Wparentheses'.
Rename local variables as suggested by `gcc -Wshadow'.
<fcntl.h>, <stdlib.h>, <string.h>, <unistd.h>: New includes.
<sys/time.h>, <sys/resource.h>: Include only if defined(RLIMIT_STACK).
<time.h>: Include, unless <sys/time.h> already does.
(HAVE_FCNTL_H, HAVE_STDLIB_H, HAVE_SYS_TIME_H): New symbols.
(HAVE_UNISTD_H, STDC_HEADERS, TIME_WITH_SYS_TIME): Likewise.
(__attribute__, PROTO, VA_START, PRINTF_ALIST, PRINTF_DCL): New macros.
(PRINTF_PROTO{,_1,_2,_3}, DO_PROTO): Likewise.
(bcopy, bzero, bcmp): If #defined by configuration file, use that.
If STDC_HEADERS is defined, use standard C functions.
If BSTRING is defined, or USG and VMS are not defined, use
the C library. Otherwise, use my_bcopy, my_bzero, my_bcmp.
(localtime): Remove no-longer-necessary explicit declaration.
(getenv, index, rindex): Don't declare explicitly if the
appropriate system header should declare it.
(fdopen): Remove no-longer-used declaration.
(vprintf): Define a subsitute macro if !defined(HAVE_VPRINTF).
(main): Replace `fdopen (dup (fileno (stdout)), "w"))'
with `stdout'.
(get_lintcmd, rescan, create_definition): Use bcmp instead of strncmp
when both operands are known to be free of null bytes.
(check_macro_name, compare_defs, collect_expansion): Likewise.
(do_assert, compare_token_lists, assertion_lookup, do_line): Likewise.
(skip_if_group, lookup): Likewise.
(rescan): Remove unused label `startagain'.
Abort instead of printing nonsense if the stack is corrupted
when there was an unterminated successful conditional.
(pcfinclude): Include explicit double-cast through GENERICPTR
to identify particularly egregious type puns.
(create_definition, do_define, check_macro_name): Use %.*s
printf format to avoid painful copying-and-casting.
(do_once): Return void, not (unused) int.
(do_ident, do_pragma, do_sccs): Accept extra arguments so that
all directive-handler's types match.
(do_sccs): Define only if SCCS_DIRECTIVE is defined.
(skip_if_group, dump_single_macro): Add `default: break;' to
keep -Wswitch happy.
(error, warning, error_with_line, vwarning_with_line, pedwarn): Use
stdarg/vararg/vfprintf instead of passing bogus char * args around.
(pedwarn_with_line, pedwarn_with_file_and_line, fatal): Likewise.
(verror, vwarning, verror_with_line, vwarning_with_line): New fcns.
(dump_single_macro): Abort if ap points to garbage.
(make_definition, make_undef, make_assertion): Parameter now char *.
(xmalloc, xrealloc, xcalloc, savestring, index0): Make sizes size_t
instead of unsigned; make pointer parameters GENERICPTR, not char *.
(xcalloc): Use bzero to clear memory instead of using own loop.
Fri Mar 31 08:33:07 1995 Ken Raeburn (raeburn@wombat.gnu.ai.mit.edu)
* longlong.h (umul_ppmm mc68000): Use %# instead of #.
Fri Mar 31 06:37:54 1995 Michael Meissner (meissner@cygnus.com)
* stor-layout.c (layout_decl): Implment -fpack-struct.
(layout_record): Ditto.
* flags.h (flag_pack_struct): New flag variable.
* toplev.c (flag_pack_struct): New flag variable.
(f_options): Add -fpack-struct support.
* Makefile.in (stor-layout.o): Add flags.h dependency.
Fri Mar 31 08:40:16 1995 Douglas Rupp (drupp@cs.washington.edu)
* configure (i[345]86-*-winnt3*): Add tmake_file.
* i386/x-winnt (winnt.o): Deleted.
* i386/t-winnt: New file.
Fri Mar 31 07:26:37 1995 Richard Kenner (kenner@vlsi1.ultra.nyu.edu)
* m68k/netbsd.h, m68k/hp3bsd44.h: Remove #include of machine/ansi.h.
* configure (a29k-*-bsd): Set tmake_file to t-libc-ok.
* stmt.c (expand_asm_operands): Properly handle output that can't
be directly written into.
* c-parse.in (structsp): Correct error in last change.
* c-common.c (init_attributes): A_FORMAT is only for decls.
Thu Mar 30 18:27:34 1995 Jason Merrill <jason@phydeaux.cygnus.com>
* libgcc2.c: Remove explicit 0-initializations of static variables.
Thu Mar 30 18:22:39 1995 Fergus Henderson <fjh@cs.mu.oz.au>
* c-typeck.c (internal_build_compound_expr): Warn if LHS of comma
expression has no side effects, or computes value which is not used.
* stmt.c (make warn_if_unused_value): No longer static.
* tree.h (warn_if_unused_value): Add declaration.
Thu Mar 30 18:15:11 1995 Jim Wilson <wilson@cygnus.com>
* combine.c (get_last_value): Revert back to use prev_nonnote_insn
instead of prev_real_insn. Modify test that ignores USE insns.
* rs6000.h (SELECT_SECTION): Apply constant DECL_INITIAL test
only to DECLs.
* explow.c (allocate_dynamic_stack_space): Test STACK_BOUNDARY against
BIGGEST_ALIGNMENT at run time instead of at compile time.
Give MUST_ALIGN macro a value, and test this value in if statements.
Thu Mar 30 08:59:56 1995 Richard Kenner (kenner@vlsi1.ultra.nyu.edu)
* c-parse.in: Now have 27 shift/reduce conflicts.
(attribute_list): Just make chain of all attributes.
(attrib): Consistently put name as PURPOSE, args, if any, as VALUE.
(structsp): Allow attributes on any struct or union.
* c-common.c (enum attrs): New enum class.
(attrtab, attrtab_idx): New variables.
(add_attribute, init_attributes): New functions.
(decl_attributes): Major rewrite.
* tree.c (valid_machine_attribute): Now receive name and args.
Thu Mar 30 07:20:14 1995 Paul Eggert <eggert@twinsun.com>
* protoize.c: Use the phrase `preprocessing directive' consistently.
* cccp.c (handle_directive, do_line, skip_if_group): Likewise.
(output_line_directive): Renamed from output_line_command.
(no_line_directives): Renamed from no_line_commands.
* cccp.c (rescan): Don't recognize preprocessing directives
within macro args. Warn if one is found.
Thu Mar 30 06:20:36 1995 H.J. Lu (hjl@nynexst.com)
* configure (i[345]86-*-linux*): Set xmake_file=x-linux,
tm_file=i386/linux.h, and don't set extra_parts.
(i[345]86-*-linux*aout*): New configuration.
(i[345]86-*-linuxelf): Deleted.
* config/linux{,-aout}.h, config/x-linux, config/xm-linux.h: New files.
* config/i386/linux-aout.h: New file.
* config/i386/linux.h: Extensive modifications to use ELF format
as default.
(LIB_SPEC): Don't use libc_p.a for -p. don't use libg.a
unless for -ggdb.
(LINUX_DEFAULT_ELF): Defined.
* config/i386/linuxelf.h,config/i386/x-linux: Files deleted.
* config/i386/xm-linux.h: Just include xm-i386.h and xm-linux.h.
Wed Mar 29 19:09:36 1995 Mike Stump <mrs@cygnus.com>
* libgcc2.c (__throw_type_match): Update to use new calling convention.
Wed Mar 29 14:53:23 1995 Jim Wilson <wilson@cygnus.com>
* gcc.c (process_command): Delete code modifying gcc_exec_prefix.
(main): Put it here after last use of gcc_exec_prefix. For cross
compiler, set startfile_prefixes if gcc_exec_prefix is set and
standard_startfile_prefix is a relative path.
* combine.c (make_compound_operation, AND case): Undo July 7, 1994
change.
* mips/mips.md (call_internal1, call_value_internal1): Move %* from
start of assembler output to immediately before the jal.
* mips/mips.c (function_prologue): Put SDB_DEBUGGING_INFO ifdef around
code for SDB_DEBUG support.
(mips_select_rtx_section, mips_select_section): Change rdata_section
to READONLY_DATA_SECTION and sdata_section to SMALL_DATA_SECTION.
* mips/mips.h (SMALL_DATA_SECTION): Define.
* reorg.c (mark_referenced_resources): Make setjmp use all registers.
* flow.c (mark_used_regs, case SUBREG): Only fall through to REG case
if operand is a REG.
* i960/i960.h (TARGET_SWITCHES): Make -mold-align set
TARGET_FLAG_STRICT_ALIGN.
(STRICT_ALIGNMENT): Test TARGET_STRICT_ALIGN.
* sh/sh.c (andcosts): Modify costs to match the hardware, and add
explanatory comments.
* sparc/sol2.h (CPP_PREDEFINES): Add -D__SVR4.
Wed Mar 29 14:30:30 1995 Michael Meissner <meissner@cygnus.com>
* rs6000/rs6000.md (movsf): When moving to/from integer registers,
don't move floating point to memory if it is being simulated with
-msoft-float.
Wed Mar 29 06:47:36 1995 Richard Kenner (kenner@vlsi1.ultra.nyu.edu)
* c-parse.in (initdcl): Only call decl_attributes once.
* c-common.c (decl_attributes): Clean up test for __mode__.
Tue Mar 28 08:34:37 1995 John Hassey (hassey@dg-rtp.dg.com)
* i386.md (adddi3): Don't treat two non-equal MEMs as non-aliasing.
Tue Mar 28 08:20:49 1995 Richard Kenner (kenner@vlsi1.ultra.nyu.edu)
* a29k.h (CONSTANT_ADDRESS_P): Provide consistent definition.
Tue Mar 28 07:26:41 1995 Paul Eggert <eggert@twinsun.com>
* cccp.c (do_xifdef, do_endif): Remove unnecessary pointer comparisons.
Mon Mar 27 20:45:15 1995 Richard Kenner (kenner@vlsi1.ultra.nyu.edu)
* calls.c (expand_call, store_one_arg): Don't set KEEP in calls
to assign_stack_temp.
* function.c (preserve_temp_slots): Clear ADDR_TAKEN on item
that we are preserving.
Mon Mar 27 14:39:35 1995 Ian Lance Taylor <ian@cygnus.com>
* mips/mips.h (FIRST_PSEUDO_REGISTER): Increment.
(FIXED_REGISTERS, CALL_USED_REGISTERS): Add new register.
(MD_REG_LAST): Increment.
(ST_REG_FIRST, ST_REG_LAST): Increment.
(HILO_REGNUM): Define.
(enum reg_class): Add HILO_REG.
(REG_CLASS_NAMES): Add "HILO_REG".
(REG_CLASS_CONTENTS): Add HILO_REG initializer, and adjust ST_REGS
and ALL_REGS initializers.
(SECONDARY_RELOAD_CLASS): Remove.
(SECONDARY_INPUT_RELOAD_CLASS): Define.
(SECONDARY_OUTPUT_RELOAD_CLASS): Define.
(REGISTER_MOVE_COST): Treat HILO_REG as MD_REGS.
(REGISTER_NAMES): Add initialization line.
(DEBUG_REGISTER_NAMES): Add "accum".
* mips/mips.md: For each instruction which sets HI or LO, clobber
HILO_REGNUM with (clobber (match_scratch:MODE N "=a")). Change
each explicit reference to register 66 to register 67.
(mulsidi3): Change to define_expand.
(mulsidi3_internal): New name of old mulsidi3.
(mulsidi3_64bit): New insn.
(umulsidi3): Change to define_expand.
(umulsidi3_internal): New name of old umulsidi3.
(umulsidi3_64bit): New insn.
(madddi_64bit, umaddi_64bit): New insns.
(movdi_internal2): Add case for setting HILO_REG to zero.
(reload_indi, reload_outdi): New define_expands.
(movsi_internal1, movsi_internal2): Add cases for setting MD_REGS
to zero, and for setting a general reg to HILO_REG.
(reload_outsi): New define_expand.
* mips/mips.c (mips_reg_names): Add "accum".
(mips_sw_reg_names): Likewise.
(mips_regno_to_class): Map HILO_REGNUM to HILO_REG.
(mips_move_1word): Handle moving HILO_REGNUM to a general
register. Make sure that the normal MD_REG cases aren't used for
HILO_REGNUM. Handle moving zero to a MD_REG.
(mips_move_2words): Make sure that the normal MD_REG cases aren't
used for HILO_REGNUM. Handle moving zero to a MD_REG.
(override_options): Set mips_char_to_class for 'a' and 'b'.
(mips_secondary_reload_class): Add in_p argument. Handle
HILO_REGNUM.
Mon Mar 27 07:16:05 1995 Warner Losh <imp@village.org>
* gcc.c: Removed __NetBSD__ from conditional.
Declare strerror if HAVE_STRERROR is defined; otherwise
declare sys_errlist and sys_nerr.
(my_strerror): New function.
Fri Mar 24 18:08:14 1995 Jason Merrill <jason@python.cygnus.com>
* i386/linux.h (LIB_SPEC): Don't try to link with libraries we
know only exist in archive form unless -static.
Fri Mar 24 16:12:16 1995 Doug Evans <dje@cygnus.com>
* Makefile.in (multilib.h): Depend on Makefile, not config.status.
Fri Mar 24 15:01:17 1995 Michael Meissner <meissner@cygnus.com>
* rs6000/rs6000.h (TARGET_MULTIPLE_SET): New target_flags bit that
indicates -mmultiple or -mno-multiple was explicitly passed by the
user, and not set as part of the cpu defaults.
(TARGET_SWITCHES): Set TARGET_MULTIPLE_SET bit for both -mmultiple
and -mno-multiple.
* rs6000/rs6000.c (rs6000_override_options): If -mmultiple or
-mno-multiple was explicitly used, don't override the setting with
the processor default.
Wed Mar 22 21:42:13 1995 Doug Evans <dje@cygnus.com>
* i960/i960.c (i960_function_arg_advance): Ensure all regs marked
as used if stack is also used (for va_start).
(i960_setup_incoming_varargs): Rewrite to be similar to Intel's
version, but don't allocate reg block unless necessary.
* ginclude/va-i960.h (varargs va_start): Save g14 explicitly.
Account for arguments preceding va_alist.
Wed Mar 22 13:24:55 1995 Torbjorn Granlund <tege@adder.cygnus.com>
* pa.c (singlemove_string): Handle SFmode constants again. Simplify.
(zdepi_cint_p): Make some variables HOST_WIDE_INT.
(lhs_lshift_cint_operand): Likewise.
(output_and): Likewise.
(output_ior): Likewise.
Wed Mar 22 12:40:09 1995 Jim Wilson <wilson@chestnut.cygnus.com>
* sh.md (udivsi3): Don't clobber register 6.
(udivsi3, divsi3, mulsi3_call): Use a pseudo-reg with regclass 'z'
for output rather than hard register 0.
(block_move_real): Don't clobber registers 4 and 5.
* mips.c (mips_select_section): Apply constant DEC_INITIAL tests
only to VAR_DECLs.
Wed Mar 22 03:53:17 1995 Richard Stallman <rms@mole.gnu.ai.mit.edu>
* config.sub (rm400, rm600): New machine names.
(sinix5.*, sinix): New os aliases.
(mips-siemens): Default os to sysv4.
Mon Mar 20 21:56:47 1995 Per Bothner <bothner@kalessin.cygnus.com>
Merged Paul Eggert's patch to cccp.c of Wed Mar 8 18:21:51 1995:
* cpplib.c (do_include): Fix type typo: pcfbuflimit is char *, not int.
Merged Doug Evans' patch to cccp.c of Mon Feb 27 17:06:47 1995:
* cpplib.c (do_include): Check for redundant file before opening in
relative path case. Don't call fstat unnecessarily.
Merged J.T. Conklin's patch to cccp.c of Wed Feb 22 20:29:31 1995:
* cpperror.c: Removed __NetBSD__ from conditional.
Merged Kenner's patch to cccp.c & cexp.y of Tue Sep 20 17:49:47 1994:
* cppexp.c (struct operation): Make value by HOST_WIDE_INT.
(cpp_parse_expr): Change return type to HOST_WIDE_INT.
* cpplib (eval_if_expr): Likewise.
(do_if, do_elif): Update appropriately.
* cpplib.h (cpp_parse_expr): Removed, to avoid defining HOST_WIDE_INT.
Merged Paul Eggert's patch to cccp.c of Mon Aug 8 19:42:09 1994:
* cpplib.c (create_definition): Warn about `#define a@', since a
diagnostic is now required (see ISO TC1's addition to subclause 6.8).
Also warn about `#define is-empty(x) (!x)'.
Tue Mar 21 00:10:50 1995 Jeffrey A. Law <law@mole.gnu.ai.mit.edu>
* x-pa (CC): Add "-Dbsd4_4".
Mon Mar 20 18:40:31 1995 Per Bothner <bothner@kalessin.cygnus.com>
* toplev.c (print_error_function): New function hook.
(default_print_error_function): New function. Default value
of print_error_function. Code moved here from report_error_function.
(report_error_function): Use print_error_function hook.
Mon Mar 20 20:27:43 1995 Doug Evans <dje@cygnus.com>
* cccp.c (do_xifdef): Handle c++ comments.
(do_endif): Likewise.
Mon Mar 20 15:31:45 1995 Jason Merrill <jason@phydeaux.cygnus.com>
* configure (i386 configurations): Prepend i386/ to t-crt*.
Mon Mar 20 07:58:04 1995 Richard Kenner (kenner@vlsi1.ultra.nyu.edu)
* stmt.c (fixup_gotos): Add missing call from last change.
* objc/misc.c: Put Alpha-specific decls before #include of runtime.h.
* alpha.h (EXTRA_SECTIONS): Write zeros first time in .rdata.
Sat Mar 18 16:37:24 1995 Richard Kenner (kenner@vlsi1.ultra.nyu.edu)
* flow.c (mark_used_regs, case SUBREG): Set reg_changes_size even
for integer modes.
(mark_used_regs): Set reg_changes_size for RHS, if necessary.
* combine.c (gen_lowpart_for_combine): Set reg_changes_size, if needed.
* reload.c (push_reload): Reload a SUBREG if paradoxical and
class is CLASS_CANNOT_CHANGE_SIZE.
* reload1.c (gen_reload): Handle paradoxical SUBREGs.
* alpha.h (SECONDARY_{INPUT,OUTPUT}_RELOAD_CLASS): Need GENERAL_REGS
for paradoxical SUBREG and FLOAT_REGS.
(SECONDARY_NEEDED_MODE): Use actual mode for 4 bytes or wider.
* alpha.md (movsi): Allow FP regs and add case for store of FP reg.
Remove cvtlq from MEM to FP reg case.
* rtl.h (emit_insns_after): Add declaration.
* stmt.c (fixup_gotos): Do a cleanup for a block when it is exited
even if label if not defined yet.
* function.c (pop_function_context): Fix error in last change;
reference old value of current_function_decl before we modify it.
Fri Mar 17 21:57:44 1995 Jason Merrill <jason@phydeaux.cygnus.com>
* toplev.c (rest_of_compilation): Handle -Wreturn-type properly
for inlines we aren't compiling yet.
Fri Mar 17 21:26:48 1995 Mike Stump <mrs@cygnus.com>
* libgcc2.c (__register_exceptions): Handle empty tables.
Fri Mar 17 11:48:31 1995 Douglas Rupp (drupp@cs.washington.edu)
* i386/winnt.c (winnt_function_prologue): Deleted.
(gen_stdcall_suffix): New function.
Thu Mar 16 17:36:52 1995 Jason Merrill <jason@phydeaux.cygnus.com>
* svr4.h (LINK_SPEC): If the user did not specify -h name, use the
output file name, if any.
* sparc/sol2.h (LINK_SPEC): Ditto. Also, if the user did not
specify -R path, add an -R for each -L.
Move SunOS 4-specific assembler switches into the appropriate place.
* m68k/sun[23].h (ASM_SPEC): Add %{R} %{j} %{J} %{h} %{d2}
%{keep-local-as-symbols:-L}.
* i386/sun.h (ASM_SPEC): Add %{R} %{keep-local-as-symbols:-L}.
* sparc/sparc.h (ASM_SPEC): Ditto.
* gcc.c (default_compilers): Remove %{R} %{j} %{J} %{h} %{d2}
%{keep-local-as-symbols:-L} from assembler rules.
Thu Mar 16 16:58:09 1995 Michael Meissner <meissner@cygnus.com>
* rs6000/eabi-ctors.c: New file, handle C++ static constructors
and destructors without requiring anything else from a libc.
* rs6000/t-eabi (LIB2FUNCS_EXTRA): Build eabi-ctors.c.
* rs6000/eabi.asm: Do not load up register 2 if there is no .got
section. Jump to the __do_global_ctors function at the end of
processing to call C++ static constructors, and it will return to
__eabi's caller. Use normal volatile registers, instead of saving
and restoring registers 30 and 31.
* rs6000/eabi.h (STARTFILE_SPEC): Define as null.
(LIB_SPEC): Ditto.
(ENDFILE_SPEC): Ditto.
(LIBGCC_SPEC): Always look for libgcc.a.
Thu Mar 16 17:05:14 1995 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
* stmt.c (warn_if_unused_value, case SAVE_EXPR): New case.
(warn_if_unused_value, case NOP_EXPR): OK if CALL_EXPR inside.
* c-common.c (decl_attributes): Allow alignment for TYPE_DECLs.
* Makefile.in (xsys-protos.h): Fix typo in -U operand.
Thu Mar 16 13:49:10 1995 Per Bothner <bothner@rtl.cygnus.com>
* cpplib.c, cpplib.h: New files - a C PreProcessor library.
* cpphash.c, cpphash.h, cppalloc.c, cpperror.c, cppexp.c:
New files - utility features used by cpplib.
* cppmain.c: New file - cpp replacement main program for cpplib.
* Makefile.in: New rules to build cppmain.
Thu Mar 16 16:11:05 1995 Douglas Rupp (drupp@cs.washington.edu)
* i386/winnt.h (FUNCTION_PROLOGUE, HAVE_probe, gen_probe): Deleted.
(ENCODE_SECTION_INFO, VALID_MACHINE_DECL_ATTRIBUTE): New macro.
Thu Mar 16 15:58:24 1995 Richard Kenner (kenner@vlsi1.ultra.nyu.edu)
* combine.c (apply_distributive_law, case SUBREG): Fix typo when
checking for paradoxical SUBREG.
Wed Mar 15 18:45:08 1995 Doug Evans <dje@cygnus.com>
* libgcc1-test.c: Renamed from cross-test.c.
* Makefile.in (LIBGCC1_TEST): Renamed from CROSS_TEST.
(all.cross): Delete $(ENQUIRE) dependency.
(libgcc1-test): Renamed from cross-test.
Delete unnecessary gcc-cross and $(LIBGCC) dependencies.
Link with -nostartfiles -nostdlib
`$(GCC_FOR_TARGET) --print-libgcc-file-name`.
(libgcc1-test.o): Renamed from cross-test.o.
Change gcc-cross dependency to xgcc since the latter is used.
Wed Mar 15 13:49:21 1995 Jason Merrill <jason@phydeaux.cygnus.com>
* tree.c (save_tree_status): Now takes a tree 'context' instead of
a boolean 'toplevel' as an argument. If 'context' is not
current_function_decl, create a new obstack for the new function.
Also save inline_obstacks.
(restore_tree_status): No longer takes a second argument. Also
restore inline_obstacks.
(temporary_allocation): Clear inline_obstacks.
(permanent_allocation): Free up the obstacks in inline_obstacks.
* function.h (struct function): New fields contains_functions and
inline_obstacks.
* function.c (push_function_context_to): Now takes a tree
'context' instead of a boolean 'toplevel' as an argument.
Also save current_function_contains_functions.
(push_function_context): Pass current_function_decl to it.
(pop_function_context_from): Takes 'context' instead of 'toplevel'.
Set current_function_contains_functions properly.
(pop_function_context): Pass current_function_decl to it.
Wed Mar 15 14:53:09 1995 Michael Meissner <meissner@cygnus.com>
* rs6000/rs6000.md (abssi2): Turn into a define_expand. If
TARGET_POWER, do old code that uses the abs instruction. If not,
do abs in three instructions, using a temporary register, which
enables generating more reasonable code for sne. Add a recognizer
for negative of the absolute value. Add define_splits for the
PowerPC.
(sne insn): Add a recognizer for sne on the PowerPc to use two
instructions, compared to the four generated using the absolute
value insn.
Tue Mar 14 18:38:40 1995 J.T. Conklin <jtc@cygnus.com>
* m68k.md ({add,sub,mul,div}[sdx]f3): Add new patterns for recognizing
SImode, HImode, and QImode operands.
Mon Mar 13 18:59:36 EST 1995 David Edelsohn <edelsohn@mhpcc.edu>
* rs6000.h (CPP_SPEC): Add PPC403.
(processor_type): Add PPC403.
(RTX_COSTS): Add PPC403.
* powerpc.h (CPP_SPEC): Add PPC403.
* sysv4.h (CPP_SPEC): Add PPC403.
* rs6000.c (processor_target_table): Add PPC403.
* rs6000.md (define_attr cpu and function units): Add PPC403.
Mon Mar 13 14:40:23 1995 Michael Meissner <meissner@cygnus.com>
* rs6000/rs6000.md (call, call_value insns): Do not put a nop
after a bl instruction on System V.4 and eABI.
* rs6000/sysv.4 (SUBTARGET_SWITCHES): Add support for
-mno-traceback to suppress the V.4 traceback word.
(ASM_DECLARE_FUNCTION_NAME): Don't put out a traceback work if
-mno-traceback.
Mon Mar 13 13:36:37 1995 Jason Merrill <jason@phydeaux.cygnus.com>
* t-svr4, i386/t-{crtpic,sol2}, m88k/t-svr4, sparc/t-sol2:
Use -fPIC, rather than -fpic, for building crtstuff.
Sat Mar 11 17:27:08 1995 Jason Merrill <jason@phydeaux.cygnus.com>
* configure: Use aix3newas.h for AIX 3.2.4 and 5.
* rs6000/aix41.h: Undefine ASM_OUTPUT_EXTERNAL{,_LIBCALL}.
* rs6000/aix3newas.h: New file. Define ASM_SPEC to -u, and
undefine ASM_OUTPUT_EXTERNAL{,_LIBCALL}.
Sat Mar 11 06:42:50 1995 Richard Kenner (kenner@vlsi1.ultra.nyu.edu)
* dbxout.c (dbxout_symbol): Properly handle decl whose DECL_NAME
points to a TYPE_DECL with a zero TYPE_NAME.
Fri Mar 10 18:18:33 1995 Torbjorn Granlund <tege@cygnus.com>
* pa.h (PROMOTE_MODE): Define.
Fri Mar 10 14:37:58 1995 Richard Kenner (kenner@vlsi1.ultra.nyu.edu)
* sdbout.c (sdbout_record_type_name): If TYPE_NAME is
a TYPE_DECL, get name from DECL_NAME.
Fri Mar 10 14:09:26 1995 Doug Evans <dje@cygnus.com>
* arm/riscix.h (SUBTARGET_SWITCHES): Renamed from
ARM_EXTRA_TARGET_SWITCHES.
* arm/riscix1-1.h (SUBTARGET_SWITCHES): Likewise.
* arm.h (SUBTARGET_SWITCHES): Likewise.
(TARGET_HARD_FLOAT, TARGET_SOFT_FLOAT): Define.
(TARGET_SWITCHES): Add -msoft-float, -mhard-float.
(BYTES_BIG_ENDIAN): Delete #ifndef/#endif.
(CONDITIONAL_REGISTER_USAGE): If -msoft-float, disable fp regs.
(FUNCTION_VALUE): R16 is return reg only if !-msoft-float.
(LIBCALL_VALUE): Likewise.
* arm.md (all fp patterns): Conditionalize on TARGET_HARD_FLOAT.
(*movsf_soft_insn, *movdf_soft_insn): New patterns.
Fri Mar 10 13:53:46 1995 Jim Wilson <wilson@cygnus.com>
* reorg.c (steal_delay_list_from_target): Exit at the top if the
branch in SEQ is not a single set.
* sh.md (movdi define_split, movdf define_split): Correct indentation
and formatting. Make the condition fail if an operand is a MEM
with an auto-inc address.
* varasm.c (copy_constant): Copy operand of ADDR_EXPR if it is a
constant.
* mips/abi64.h (SETUP_INCOMING_VARARGS): Correct arguments to
move_block_from_reg call.
* expr.c (expand_assignment): When offset is zero, make new MEM
before setting MEM_VOLATILE_P.
* reload.c (find_reloads, case 'o'): Accept a fully reloaded
auto-increment address.
* combine.c (max_uid_cuid): New static variable.
(INSN_CUID): Call abort if INSN is out of range.
(combine_instructions): Set max_uid_cuid. Set uid_cuid directly
instead of through INSN_CUID.
(get_last_value): Use prev_real_insn instead of prev_nonnote_insn.
Ignore USE insns generated by combine.
Fri Mar 10 13:47:08 1995 Rod Barman <rodb@cs.ubc.ca>
* m68k/fpgnulib.c (__fixdfsi): Catch values < 0.5 in magnitude.
Fri Mar 10 12:02:33 1995 Ian Lance Taylor <ian@cygnus.com>
* fixincludes: Fix `typedef struct term;' on hppa1.1-hp-hpux9.
Fri Mar 10 05:50:11 1995 Oliver Kellogg (Oliver.Kellogg@RST13.DASA.DBMAIL.d400.de)
* 1750a.c (sectname): Reverse Init and Normal.
(print_operand_address, case PLUS): Add case for LABEL_REF.
(print_operand_address, case LABEL_REF): Split fom SYMBOL_REF.
(print_operand_address, case CODE_LABEL): New case.
(ASM_FILE_END): Delete.
* 1750a.h (FUNCTION_EPILOGUE): Restore stack before freeing local vars.
(DEFAULT_SIGNED_CHAR): Now 1.
(DATA_SECTION_ASM_OP): Use pseudo-op for read-only data (later copied).
(JUMP_TABLES_IN_TEXT_SECTION): Define.
(ASM_OUTPUT_ASCII): Split into multiple lines if long.
(ASM_OUTPUT_{CHAR,SHORT,INT,LONG_INT}): Split up.
(ASM_OUTPUT_COMMON): Call check_section.
Thu Mar 9 12:46:53 1995 Michael Meissner <meissner@cygnus.com>
* rs6000.md (movsf): Do not call truncdfsf2 for non PowerPC
when expanding a store to memory and -msoft-float was used.
Thu Mar 9 08:51:35 1995 Richard Kenner (kenner@vlsi1.ultra.nyu.edu)
* c-decl.c (start_function): Handle new parameter ATTRIBUTES.
* c-tree.h (start_function): Add new parameter.
* c-lang.c (finish_file): Pass new parm to start_function.
* objc-act.c (build_module_descriptor, really_start_method): Likewise.
* c-parse.in (fndef, nested_function): Pass prefix_attributes
to start_function.
(setspecs): Save prefix_attributes in declspec_stack.
(decl rules): Restore prefix_attributes along with current_declspecs.
(setattrs): Concatenate prefix_attributes to previous value.
* c-common.c (decl_attributes): Handle prefix and suffix attributes
the same way.
* print-tree.c (print_node): Fix typo in printing large INTEGER_CST.
* varasm.c (assemble_variable): Consistently use DECL_SIZE for
everything.
* c-typeck.c (convert_for_assignment): Fix typo in testing for
pointer to function type.
* varasm.c (record_constant_1): Handle NON_LVALUE_EXPR.
Rewrite to use switch instead of if/then/elseif/else.
Wed Mar 8 18:21:51 1995 Paul Eggert <eggert@twinsun.com>
* cccp.c (do_include): Fix type typo: pcfbuflimit is char *, not int.
Wed Mar 8 17:30:29 1995 Richard Kenner (kenner@vlsi1.ultra.nyu.edu)
* fold-const.c (force_fit_type): Always propagate OVERFLOW.
* rtl.def (INLINE_HEADER): Add new "e" field.
* rtl.h (FORCED_LABELS): New field; other fields adjusted.
(gen_inline_header_rtx): New parm FORCED_LABELS.
* emit-rtl.c (gen_inline_header): Add new parm FORCED_LABELS.
* integrate.c (initialize_for_inline, output_inline_function):
Handle FORCED_LABELS.
Wed Mar 8 13:47:20 1995 Jason Merrill (jason@cygnus.com)
* alpha.h (WORD_SWITCH_TAKES_ARG): Add -rpath.
(LINK_SPEC): Pass through -taso and -rpath.
* alpha/osf12.h (LINK_SPEC): Ditto.
Wed Mar 8 09:59:56 1995 Michael Meissner <meissner@cygnus.com>
* rs6000/eabi.asm: Rewrite so that the initialized pointers go
into the .got2 section, which allows eabi.asm to be assembled with
the -mrelocatable option. Move the data picked up from the bl
instruction to before the traceback tag.
* rs6000/sysv4.h (CPP_SPEC): Define _RELOCATABLE if -mrelocatable
switch is used.
* libgcc2.c (__new_handler): Don't initialize the pointer variable
with the address of __default_new_handler, which may not work in
some shared library mechanisms.
(__builtin_new): If __new_handler is NULL, call the function
__default_new_handler.
Tue Mar 7 17:34:59 1995 Ian Lance Taylor <ian@cygnus.com>
* i960.h (PROCESS_PRAGMA): Define.
(ROUND_TYPE_ALIGN): Pass maximum of COMPUTED and SPECIFIED to
i960_round_align.
(ROUND_TYPE_SIZE): Delete.
* i960.c (process_pragma): Uncomment, and rewrite for gcc 2.
(i960_round_size): Delete.
(i960_round_align): Don't adjust suggested alignment downward.
Restrict alignment to value set by #pragma align.
Tue Mar 7 12:14:46 1995 Doug Evans <dje@cygnus.com>
* configure (sparc64-*-elf): Add crtbegin.o, crtend.o to extra_parts.
* sparc/sp64-elf.h (TARGET_VERSION): Define.
(CPP_PREDEFINES): Delete sun, sparc, unix. Delete OS assertions.
(ASM_SPEC): Define.
(LINK_SPEC): Delete solaris stuff, this is an embedded target.
(STARTFILE_SPEC, ENDFILE_SPEC): Define.
Mon Mar 6 17:54:01 1995 Doug Evans <dje@cygnus.com>
* Makefile.in (install-common): Fix typo in installation of cpp.
Likewise with gcc-cross.
Mon Mar 6 02:29:05 1995 Jeffrey A. Law <law@mole.gnu.ai.mit.edu>
* pa.md (movsicc): New expander.
Fri Mar 3 13:34:20 1995 Michael Meissner (meissner@cygnus.com)
* rs6000/sysv4.h (ASM_SPEC): If -mrelocatable was passed to
compiler, pass it on to the assembler.
Fri Mar 3 12:11:28 1995 Ian Lance Taylor <ian@cygnus.com>
* fixincludes: Add fixes for VxWorks header files.
* ginclude/stddef.h: If VxWorks typedef macros are defined, invoke
them as appropriate.
Fri Mar 3 05:48:54 1995 Paul Eggert <eggert@twinsun.com>
* cccp.c (dump_single_macro): Fix typo: % wasn't properly
doubled in printf formats.
Thu Mar 2 19:44:02 1995 Jason Merrill <jason@phydeaux.cygnus.com>
* expr.c (expand_expr, CLEANUP_POINT_EXPR): Force the operand out
of memory before running cleanups.
Thu Mar 2 19:15:24 1995 Paul Eggert <eggert@twinsun.com>
* cccp.c (rescan): Prevent accidental token-pasting to
get !=, *=, /=, ==, or ^=.
Thu Mar 2 15:37:13 1995 Jason Merrill <jason@phydeaux.cygnus.com>
* c-typeck.c (build_binary_op): Avoid spurious warning
comparing enumerator to unsigned variable.
Thu Mar 2 18:18:38 1995 J.T. Conklin <jtc@netbsd.org>
* m68k.md (sqrtsf2,sqrtdf2): Use fp precision specifiers.
Thu Mar 2 18:09:01 1995 Stephen L Moshier (moshier@world.std.com)
* c-lex.c (yylex, case !NOT_FLOAT): Remove previous change.
Thu Mar 2 15:26:50 1995 Richard Kenner (kenner@vlsi1.ultra.nyu.edu)
* Makefile.in (bootstrap*): Pass new STAGE_PREFIX to recursive makes.
Wed Mar 1 14:52:16 1995 Ian Lance Taylor <ian@cygnus.com>
* i960/i960-coff.h (ASM_FILE_START): Define.
(CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Define.
(EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Define.
(CTORS_SECTION_FUNCTION, DTORS_SECTION_FUNCTION): Define.
(INT_ASM_OP): Define.
(ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Define.
* i960/vx960-coff.h (CPP_PREDEFINES): Define.
(CPP_SPEC): Define.
(CC1_SPEC): Default to -mca.
Wed Mar 1 11:10:54 1995 Michael Meissner (meissner@cygnus.com)
* rs6000/rs6000.c (output_prologue): Do not emit the word that
gives the PC relative location to the local GOT table for the
-mrelocatable option here.
* rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Emit it here.
* t-eabi (MULTILIB_OPTIONS, MULTILIB_DIRNAMES): Build -msoft-float
and -mrelocatable versions of the library.
* rs6000/powerpc.h (CPP_PREDEFINES): Define the cpu and machine as
powerpc, not rs6000.
* libgcc2.c (_unwind_function): Clone for powerpc, using the
PowerPC mnemonics.
* rs6000/rs6000.md (uminsi3, umaxsi3): Silence warnings that
-2147483648 is too large to fit in a signed integer on 32-bit
hosts.
Wed Mar 1 06:48:31 1995 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
* fold-const.c (decode_field_reference): Don't check TREE_CODE
of EXP; let get_inner_reference decide if have reference.
Allow no bit reference if have AND_MASK.
(all_ones_mask_p): Use tree_int_cst_equal, not operand_equal_p.
(unextend): New function.
(fold_truthop): For constant cases, use new function, rework
conversion, and warn if comparison can never be true.
* expr.c (store_expr): Do conversion in two steps for promoted lhs.
See ChangeLog.9 for earlier changes.